Skip to content

Commit 03c53a2

Browse files
committed
Resolves #458 - Add support for more resources
1 parent 923ace5 commit 03c53a2

File tree

2 files changed

+204
-3
lines changed

2 files changed

+204
-3
lines changed

external/resources/yaml/resources.yaml

Lines changed: 194 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ account-authentication-settings:
1818
auto_create_account_for_account_members:
1919
type: BOOL
2020
account_member_self_management:
21-
type: BOOL
21+
type: ENUM:disabled,update_only
2222
account-management-authentication-tokens:
2323
singular-name: "account-management-authentication-token"
2424
json-api-type: "account_management_authentication_token"
@@ -30,7 +30,7 @@ account-management-authentication-tokens:
3030
content-type: application/json
3131
attributes:
3232
authentication_mechanism:
33-
type: STRING
33+
type: ENUM:oidc,password,passwordless,self_signup
3434
oauth_authorization_code:
3535
type: STRING
3636
oauth_redirect_uri:
@@ -43,6 +43,12 @@ account-management-authentication-tokens:
4343
type: STRING
4444
password:
4545
type: STRING
46+
name:
47+
type: STRING
48+
autofill: FUNC:Name
49+
email:
50+
type: STRING
51+
autofill: FUNC:Email
4652
suppress-reset-warning: true
4753
account-members:
4854
singular-name: "account-member"
@@ -1575,6 +1581,9 @@ pcm-nodes:
15751581
get-entity:
15761582
docs: "https://documentation.elasticpath.com/commerce-cloud/docs/api/pcm/hierarchies/nodes/get-a-hierarchy-node.html"
15771583
url: "/pcm/hierarchies/{pcm_hierarchies}/nodes/{pcm_nodes}"
1584+
get-collection:
1585+
docs: "https://documentation.elasticpath.com/commerce-cloud/docs/api/pcm/hierarchies/nodes/get-a-hierarchy-node.html"
1586+
url: "/pcm/hierarchies/{pcm_hierarchies}/nodes"
15781587
update-entity:
15791588
docs: "https://documentation.elasticpath.com/commerce-cloud/docs/api/pcm/hierarchies/nodes/update-a-hierarchy-node.html"
15801589
url: "/pcm/hierarchies/{pcm_hierarchies}/nodes/{pcm_nodes}"
@@ -1777,8 +1786,10 @@ pcm-pricebooks:
17771786
attributes:
17781787
name:
17791788
type: STRING
1789+
autofill: FUNC:Company
17801790
description:
17811791
type: STRING
1792+
autofill: FUNC:Phrase
17821793
pcm-product-prices:
17831794
singular-name: "pcm-product-price"
17841795
json-api-type: "product-price"
@@ -1816,6 +1827,41 @@ pcm-product-prices:
18161827
type: INT
18171828
currencies.CAD.includes_tax:
18181829
type: BOOL
1830+
pcm-pricebook-modifiers:
1831+
singular-name: "pcm-pricebook-modifier"
1832+
json-api-format: "compliant"
1833+
json-api-type: "price-modifier"
1834+
docs: "https://elasticpath.dev/docs/pxm/pricebooks/pxm-pricebooks-modifiers/get-a-price-modifier"
1835+
get-collection:
1836+
docs: "https://elasticpath.dev/docs/pxm/pricebooks/pxm-pricebooks-modifiers/get-all-price-modifiers"
1837+
url: "/pcm/pricebooks/{pcm_pricebooks}/modifiers/"
1838+
get-entity:
1839+
docs: "https://elasticpath.dev/docs/pxm/pricebooks/pxm-pricebooks-modifiers/get-a-price-modifier"
1840+
url: "/pcm/pricebooks/{pcm_pricebooks}/modifiers/{pcm_pricebook_modifiers}"
1841+
create-entity:
1842+
docs: "https://elasticpath.dev/docs/pxm/pricebooks/pxm-pricebooks-modifiers/create-a-price-modifier"
1843+
url: "/pcm/pricebooks/{pcm_pricebooks}/modifiers"
1844+
update-entity:
1845+
docs: "https://elasticpath.dev/docs/pxm/pricebooks/pxm-pricebooks-modifiers/update-a-price-modifier"
1846+
url: "/pcm/pricebooks/{pcm_pricebooks}/modifiers/{pcm_pricebook_modifiers}"
1847+
delete-entity:
1848+
docs: "https://elasticpath.dev/docs/pxm/pricebooks/pxm-pricebooks-modifiers/delete-a-price-modifier"
1849+
url: "/pcm/pricebooks/{pcm_pricebooks}/modifiers/{pcm_pricebook_modifiers}"
1850+
attributes:
1851+
name:
1852+
type: STRING
1853+
autofill: FUNC:BuzzWord
1854+
modifier_type:
1855+
type: ENUM:price_increment,price_decrement,price_equals
1856+
autofill: VALUE:price_equals
1857+
currencies.USD.amount:
1858+
type: INT
1859+
currencies.USD.includes_tax:
1860+
type: BOOL
1861+
^currencies\.USD\.tiers\..+\.minimum_quantity$:
1862+
type: INT
1863+
^currencies\.USD\.tiers\..+\.amount$:
1864+
type: INT
18191865
pcm-variations:
18201866
singular-name: "pcm-variation"
18211867
json-api-type: "product-variation"
@@ -2372,3 +2418,149 @@ stores:
23722418
get-entity:
23732419
docs: "https://elasticpath.dev/docs/getting-started/api-reference"
23742420
url: "/v2/stores/{settings}"
2421+
custom-apis:
2422+
singular-name: custom-api
2423+
json-api-type: custom_api
2424+
json-api-format: "legacy"
2425+
docs: "https://elasticpath.dev/docs/api/commerce-extensions/custom-ap-is"
2426+
delete-entity:
2427+
docs: "https://elasticpath.dev/docs/api/commerce-extensions/delete-a-custom-api"
2428+
url: "/v2/settings/extensions/custom-apis/{custom_apis}"
2429+
create-entity:
2430+
docs: "https://elasticpath.dev/docs/api/commerce-extensions/create-a-custom-api"
2431+
url: "/v2/settings/extensions/custom-apis/"
2432+
update-entity:
2433+
docs: "https://elasticpath.dev/docs/api/commerce-extensions/update-a-custom-api"
2434+
url: "/v2/settings/extensions/custom-apis/{custom_apis}"
2435+
get-entity:
2436+
docs: "https://elasticpath.dev/docs/api/commerce-extensions/get-a-custom-api"
2437+
url: "/v2/settings/extensions/custom-apis/{custom_apis}"
2438+
get-collection:
2439+
docs: "https://elasticpath.dev/docs/api/commerce-extensions/get-all-custom-apis"
2440+
url: "/v2/settings/extensions/custom-apis"
2441+
attributes:
2442+
name:
2443+
type: STRING
2444+
autofill: FUNC:Company
2445+
slug:
2446+
type: STRING
2447+
api_type:
2448+
type: STRING
2449+
description:
2450+
type: STRING
2451+
autofill: FUNC:Phrase
2452+
relationships.parent_apis[n].type:
2453+
type: ENUM:api_location,custom_api
2454+
relationships.parent_apis[n].id:
2455+
type: RESOURCE_ID:custom-apis
2456+
custom-fields:
2457+
singular-name: custom-field
2458+
json-api-type: custom_field
2459+
json-api-format: "legacy"
2460+
docs: "https://elasticpath.dev/docs/api/commerce-extensions/custom-fields"
2461+
delete-entity:
2462+
docs: "https://elasticpath.dev/docs/api/commerce-extensions/delete-a-custom-field"
2463+
url: "/v2/settings/extensions/custom-apis/{custom_apis}/fields/{custom_fields}"
2464+
create-entity:
2465+
docs: "https://elasticpath.dev/docs/api/commerce-extensions/create-a-custom-field"
2466+
url: "/v2/settings/extensions/custom-apis/{custom_apis}/fields"
2467+
update-entity:
2468+
docs: "https://elasticpath.dev/docs/api/commerce-extensions/update-a-custom-field"
2469+
url: "/v2/settings/extensions/custom-apis/{custom_apis}/fields/{custom_fields}"
2470+
get-entity:
2471+
docs: "https://elasticpath.dev/docs/api/commerce-extensions/get-a-custom-field"
2472+
url: "/v2/settings/extensions/custom-apis/{custom_apis}/fields/{custom_fields}"
2473+
get-collection:
2474+
docs: "https://elasticpath.dev/docs/api/commerce-extensions/get-all-custom-fields"
2475+
url: "/v2/settings/extensions/custom-apis/{custom_apis}/fields/"
2476+
attributes:
2477+
name:
2478+
type: STRING
2479+
autofill: FUNC:Company
2480+
slug:
2481+
type: STRING
2482+
field_type:
2483+
type: ENUM:string,integer,boolean,float
2484+
description:
2485+
type: STRING
2486+
autofill: FUNC:Phrase
2487+
validation.string.min_length:
2488+
type: INT
2489+
validation.string.max_length:
2490+
type: INT
2491+
validation.string.regex:
2492+
type: STRING
2493+
validation.string.allow_null_values:
2494+
type: BOOL
2495+
validation.string.unique:
2496+
type: ENUM:yes,no
2497+
validation.integer.min_value:
2498+
type: INT
2499+
validation.integer.max_value:
2500+
type: INT
2501+
validation.integer.allow_null_values:
2502+
type: BOOL
2503+
validation.boolean.allow_null_values:
2504+
type: BOOL
2505+
custom-api-settings-entries:
2506+
singular-name: custom-api-settings-entry
2507+
json-api-type: custom_entry
2508+
json-api-format: "legacy"
2509+
no-wrapping: true
2510+
docs: "https://elasticpath.dev/docs/api/commerce-extensions/custom-api-entries"
2511+
delete-entity:
2512+
docs: "https://elasticpath.dev/docs/api/commerce-extensions/delete-a-custom-entry"
2513+
url: "/v2/settings/extensions/custom-apis/{custom_apis}/entries/{custom_api_settings_entries}"
2514+
create-entity:
2515+
docs: "https://elasticpath.dev/docs/api/commerce-extensions/create-a-custom-entry"
2516+
url: "/v2/settings/extensions/custom-apis/{custom_apis}/entries"
2517+
update-entity:
2518+
docs: "https://elasticpath.dev/docs/api/commerce-extensions/update-a-custom-entry"
2519+
url: "/v2/settings/extensions/custom-apis/{custom_apis}/entries/{custom_api_settings_entries}"
2520+
get-entity:
2521+
docs: "https://elasticpath.dev/docs/api/commerce-extensions/get-a-custom-entry"
2522+
url: "/v2/settings/extensions/custom-apis/{custom_apis}/entries/{custom_api_settings_entries}"
2523+
get-collection:
2524+
docs: "https://elasticpath.dev/docs/api/commerce-extensions/get-all-custom-entries"
2525+
url: "/v2/settings/extensions/custom-apis/{custom_apis}/entries/"
2526+
attributes:
2527+
data.type:
2528+
type: STRING
2529+
^data\.(.+)$:
2530+
type: STRING
2531+
custom-api-extensions-entries:
2532+
singular-name: custom-api-extension-entry
2533+
json-api-type: custom_entry
2534+
json-api-format: "legacy"
2535+
no-wrapping: true
2536+
docs: "https://elasticpath.dev/docs/api/commerce-extensions/custom-api-entries"
2537+
delete-entity:
2538+
docs: "https://elasticpath.dev/docs/api/commerce-extensions/delete-a-custom-entry"
2539+
url: "/v2/extensions/custom-apis/{custom_apis}/entries/{custom_api_extensions_entries}"
2540+
parent_resource_value_overrides:
2541+
custom_apis: slug
2542+
create-entity:
2543+
docs: "https://elasticpath.dev/docs/api/commerce-extensions/create-a-custom-entry"
2544+
url: "/v2/extensions/custom-apis/{custom_apis}/entries"
2545+
parent_resource_value_overrides:
2546+
custom_apis: slug
2547+
update-entity:
2548+
docs: "https://elasticpath.dev/docs/api/commerce-extensions/update-a-custom-entry"
2549+
url: "/v2/extensions/custom-apis/{custom_apis}/entries/{custom_api_extensions_entries}"
2550+
parent_resource_value_overrides:
2551+
custom_apis: slug
2552+
get-entity:
2553+
docs: "https://elasticpath.dev/docs/api/commerce-extensions/get-a-custom-entry"
2554+
url: "/v2/extensions/custom-apis/{custom_apis}/entries/{custom_api_extensions_entries}"
2555+
parent_resource_value_overrides:
2556+
custom_apis: slug
2557+
get-collection:
2558+
docs: "https://elasticpath.dev/docs/api/commerce-extensions/get-all-custom-entries"
2559+
url: "/v2/extensions/custom-apis/{custom_apis}/entries/"
2560+
parent_resource_value_overrides:
2561+
custom_apis: slug
2562+
attributes:
2563+
data.type:
2564+
type: STRING
2565+
^data\.(.+)$:
2566+
type: STRING

external/runbooks/account-management.epcc.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@ actions:
1010
# Initialize alias for Authentication Realm
1111
- epcc get account-authentication-settings
1212
- epcc create password-profile related_authentication_realm_for_account_authentication_settings_last_read=entity name "Username and Password Authentication"
13+
enable-self-signup-and-management:
14+
description:
15+
short: "Enable password authentication"
16+
commands:
17+
# Initialize alias for Authentication Realm
18+
- epcc get account-authentication-settings
19+
- |
20+
epcc create password-profile related_authentication_realm_for_account_authentication_settings_last_read=entity name "Username and Password Authentication"
21+
epcc update account-authentication-setting enable_self_signup true auto_create_account_for_account_members true account_member_self_management "update_only"
1322
create-deep-hierarchy:
1423
description:
1524
short: "Create a hierarchy"
@@ -25,7 +34,7 @@ actions:
2534
description:
2635
short: "Width of the hierarchy"
2736
commands:
28-
# language=YAML
37+
# language=Yaml
2938
- |2
3039
{{- range untilStep 0 $.depth 1 -}}
3140
{{- $d := . -}}

0 commit comments

Comments
 (0)