Skip to content

Commit

Permalink
Resolves #488 - Adds support for one time passwords
Browse files Browse the repository at this point in the history
  • Loading branch information
steve-r-west committed Dec 19, 2024
1 parent c7d633d commit 022c869
Showing 1 changed file with 99 additions and 1 deletion.
100 changes: 99 additions & 1 deletion external/resources/yaml/resources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,7 @@ integrations:
configuration.aws_secret_access_key:
type: STRING
observes[n]:
type: ENUM:address.created,address.updated,address.deleted,account.created,account.updated,account.deleted,account-member.created,account-member.updated,account-member.deleted,account-membership.created,account-membership.updated,account-membership.deleted,brand.created,brand.updated,brand.deleted,cart.updated,cart.deleted,category.created,category.updated,category.deleted,collection.created,collection.updated,collection.deleted,currency.created,currency.updated,currency.deleted,customer.created,customer.updated,customer.deleted,file.created,file.deleted,integration.created,integration.updated,integration.deleted,order.created,order.updated,order.fulfilled,order.authorized,order.paid,order.refunded,payment-gateway.updated,product.created,product.updated,product.deleted,settings.created,settings.updated,stock-transaction.created,transaction.created,transaction.updated,user-authentication-info.created,user-authentication-info.updated,user-authentication-info.deleted
type: ENUM:address.created,address.updated,address.deleted,account.created,account.updated,account.deleted,account-member.created,account-member.updated,account-member.deleted,account-membership.created,account-membership.updated,account-membership.deleted,brand.created,brand.updated,brand.deleted,cart.updated,cart.deleted,category.created,category.updated,category.deleted,collection.created,collection.updated,collection.deleted,currency.created,currency.updated,currency.deleted,customer.created,customer.updated,customer.deleted,file.created,file.deleted,integration.created,integration.updated,integration.deleted,order.created,order.updated,order.fulfilled,order.authorized,order.paid,order.refunded,payment-gateway.updated,product.created,product.updated,product.deleted,settings.created,settings.updated,stock-transaction.created,transaction.created,transaction.updated,user-authentication-info.created,user-authentication-info.updated,user-authentication-info.deleted,one-time-password-token-request.created
inventories:
singular-name: "inventory"
json-api-type: "stock"
Expand Down Expand Up @@ -1175,6 +1175,22 @@ password-profiles:
type: ENUM:any,email
name:
type: STRING
enable_one_time_password_token:
type: BOOL
one-time-password-token-requests:
singular-name: "one-time-password-token-request"
json-api-type: "one_time_password_token_request"
json-api-format: "legacy"
docs: "https://elasticpath.dev/docs/authentication/single-sign-on/password-profiles-api/create-one-time-password-token-request"
create-entity:
docs: "https://elasticpath.dev/docs/authentication/single-sign-on/password-profiles-api/create-one-time-password-token-request"
url: "/v2/authentication-realms/{authentication_realms}/password-profiles/{password_profiles}/one-time-password-token-request"
content-type: application/json
attributes:
username:
type: STRING
purpose:
type: ENUM:reset_password,passwordless_authentication
pcm-catalogs:
singular-name: "pcm-catalog"
json-api-type: "catalog"
Expand Down Expand Up @@ -2019,6 +2035,88 @@ promotions:
type: INT
schema.exclude.targets[n]:
type: STRING
<<<<<<< Updated upstream
=======

rule-promotions:
singular-name: "rule-promotion"
json-api-type: "rule_promotion"
json-api-format: "legacy"
docs: "https://elasticpath.dev/docs/promotions-builder/promotions-builder-api/promotions-builder-api-overview"
get-collection:
docs: "https://elasticpath.dev/docs/promotions-builder/promotions-builder-api/promotions-builder-api-overview"
url: "/v2/rule-promotions"
create-entity:
docs: "https://elasticpath.dev/docs/promotions-builder/promotions-builder-api/cart-level-promotions/create-a-cart-percent-discount-promotion"
url: "/v2/rule-promotions"
get-entity:
docs: "https://elasticpath.dev/docs/promotions-builder/promotions-builder-api/promotions-builder-api-overview"
url: "/v2/rule-promotions/{rule_promotion}"
attributes:
name:
type: STRING
autofill: VALUE:Promotion {{ pseudoRandAlpha 10 }}
start:
type: STRING
#autofill: VALUE:{{ (now | int) | div 1000000000 | sub 86400 | date "2006-01-02" }}
autofill: VALUE:{{ now | unixEpoch | add -86400 | date "2006-01-02" }}
description:
type: STRING
autofill: FUNC:Phrase
end:
type: STRING
autofill: VALUE:{{ now | unixEpoch | add 604800 | date "2006-01-02" }}
enabled:
type: BOOL
autofill: VALUE:true
priority:
type: INT
rule_set.actions[n].strategy:
type: ENUM:cart_discount,item_discount,shipping_discount
rule_set.actions[n].args[n]:
type: STRING
rule_set.catalog_ids[n]:
type: RESOURCE_ID:pcm-catalog
rule_set.currencies[n]:
type: CURRENCY
rule_set.rules.strategy:
type: ENUM:cart_total,cart_custom_attribute,item_price,item_quantity,item_sku,item_category,item_attribute,item_product_id
autofill: VALUE:cart_total
rule_set.rules.operator:
type: ENUM:eq,gt,lt,gte,lte,in,nin
rule_set.rules.args[n]:
type: STRING
stackable:
type: BOOL

#autofill: VALUE:{{ (now | int) | div 1000000000 | add 604800 | date "2006-01-02" }}
rule-promotions-codes:
singular-name: "rule-promotion-code"
json-api-format: legacy
json-api-type: "promotion_codes"
docs: "https://elasticpath.dev/docs/promotions-builder/promotions-builder-codes/get-rule-promotion-codes"
no-wrapping: false
get-collection:
docs: "https://elasticpath.dev/docs/promotions-builder/promotions-builder-codes/get-rule-promotion-codes"
url: "/v2/rule-promotions/{rule_promotions}/codes"
create-entity:
docs: "https://elasticpath.dev/docs/promotions-builder/promotions-builder-codes/create-promotion-codes"
url: "/v2/rule-promotions/{rule_promotions}/codes"
attributes:
codes[n].code:
type: STRING
codes[n].uses:
type: INT
codes[n].user:
type: RESOURCE_ID:customers
consume_unit:
type: ENUM:per_application,per_cart
is_for_new_shopper:
type: BOOL
autofill: VALUE:false


>>>>>>> Stashed changes
settings:
singular-name: "setting"
json-api-type: "settings"
Expand Down

0 comments on commit 022c869

Please sign in to comment.