Skip to content

Commit

Permalink
Resolves #458 - Add support for more resources
Browse files Browse the repository at this point in the history
  • Loading branch information
steve-r-west committed Aug 20, 2024
1 parent 923ace5 commit 46b9260
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 3 deletions.
50 changes: 48 additions & 2 deletions external/resources/yaml/resources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ account-authentication-settings:
auto_create_account_for_account_members:
type: BOOL
account_member_self_management:
type: BOOL
type: ENUM:disabled,update_only
account-management-authentication-tokens:
singular-name: "account-management-authentication-token"
json-api-type: "account_management_authentication_token"
Expand All @@ -30,7 +30,7 @@ account-management-authentication-tokens:
content-type: application/json
attributes:
authentication_mechanism:
type: STRING
type: ENUM:oidc,password,passwordless,self_signup
oauth_authorization_code:
type: STRING
oauth_redirect_uri:
Expand All @@ -43,6 +43,12 @@ account-management-authentication-tokens:
type: STRING
password:
type: STRING
name:
type: STRING
autofill: FUNC:Name
email:
type: STRING
autofill: FUNC:Email
suppress-reset-warning: true
account-members:
singular-name: "account-member"
Expand Down Expand Up @@ -1575,6 +1581,9 @@ pcm-nodes:
get-entity:
docs: "https://documentation.elasticpath.com/commerce-cloud/docs/api/pcm/hierarchies/nodes/get-a-hierarchy-node.html"
url: "/pcm/hierarchies/{pcm_hierarchies}/nodes/{pcm_nodes}"
get-collection:
docs: "https://documentation.elasticpath.com/commerce-cloud/docs/api/pcm/hierarchies/nodes/get-a-hierarchy-node.html"
url: "/pcm/hierarchies/{pcm_hierarchies}/nodes"
update-entity:
docs: "https://documentation.elasticpath.com/commerce-cloud/docs/api/pcm/hierarchies/nodes/update-a-hierarchy-node.html"
url: "/pcm/hierarchies/{pcm_hierarchies}/nodes/{pcm_nodes}"
Expand Down Expand Up @@ -1777,8 +1786,10 @@ pcm-pricebooks:
attributes:
name:
type: STRING
autofill: FUNC:Company
description:
type: STRING
autofill: FUNC:Phrase
pcm-product-prices:
singular-name: "pcm-product-price"
json-api-type: "product-price"
Expand Down Expand Up @@ -1816,6 +1827,41 @@ pcm-product-prices:
type: INT
currencies.CAD.includes_tax:
type: BOOL
pcm-pricebook-modifiers:
singular-name: "pcm-pricebook-modifier"
json-api-format: "compliant"
json-api-type: "price-modifier"
docs: "https://elasticpath.dev/docs/pxm/pricebooks/pxm-pricebooks-modifiers/get-a-price-modifier"
get-collection:
docs: "https://elasticpath.dev/docs/pxm/pricebooks/pxm-pricebooks-modifiers/get-all-price-modifiers"
url: "/pcm/pricebooks/{pcm_pricebooks}/modifiers/"
get-entity:
docs: "https://elasticpath.dev/docs/pxm/pricebooks/pxm-pricebooks-modifiers/get-a-price-modifier"
url: "/pcm/pricebooks/{pcm_pricebooks}/modifiers/{pcm_pricebook_modifiers}"
create-entity:
docs: "https://elasticpath.dev/docs/pxm/pricebooks/pxm-pricebooks-modifiers/create-a-price-modifier"
url: "/pcm/pricebooks/{pcm_pricebooks}/modifiers"
update-entity:
docs: "https://elasticpath.dev/docs/pxm/pricebooks/pxm-pricebooks-modifiers/update-a-price-modifier"
url: "/pcm/pricebooks/{pcm_pricebooks}/modifiers/{pcm_pricebook_modifiers}"
delete-entity:
docs: "https://elasticpath.dev/docs/pxm/pricebooks/pxm-pricebooks-modifiers/delete-a-price-modifier"
url: "/pcm/pricebooks/{pcm_pricebooks}/modifiers/{pcm_pricebook_modifiers}"
attributes:
name:
type: STRING
autofill: FUNC:BuzzWord
modifier_type:
type: ENUM:price_increment,price_decrement,price_equals
autofill: VALUE:price_equals
currencies.USD.amount:
type: INT
currencies.USD.includes_tax:
type: BOOL
^currencies\.USD\.tiers\..+\.minimum_quantity$:
type: INT
^currencies\.USD\.tiers\..+\.amount$:
type: INT
pcm-variations:
singular-name: "pcm-variation"
json-api-type: "product-variation"
Expand Down
11 changes: 10 additions & 1 deletion external/runbooks/account-management.epcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ actions:
# Initialize alias for Authentication Realm
- epcc get account-authentication-settings
- epcc create password-profile related_authentication_realm_for_account_authentication_settings_last_read=entity name "Username and Password Authentication"
enable-self-signup-and-management:
description:
short: "Enable password authentication"
commands:
# Initialize alias for Authentication Realm
- epcc get account-authentication-settings
- |
epcc create password-profile related_authentication_realm_for_account_authentication_settings_last_read=entity name "Username and Password Authentication"
epcc update account-authentication-setting enable_self_signup true auto_create_account_for_account_members true account_member_self_management "update_only"
create-deep-hierarchy:
description:
short: "Create a hierarchy"
Expand All @@ -25,7 +34,7 @@ actions:
description:
short: "Width of the hierarchy"
commands:
# language=YAML
# language=Yaml
- |2
{{- range untilStep 0 $.depth 1 -}}
{{- $d := . -}}
Expand Down

0 comments on commit 46b9260

Please sign in to comment.