@acmekit/core-flows 2.13.14 → 2.13.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api-key/steps/create-api-keys.d.ts +2 -2
- package/dist/api-key/steps/create-api-keys.js +2 -2
- package/dist/api-key/workflows/create-api-keys.d.ts +5 -15
- package/dist/api-key/workflows/create-api-keys.d.ts.map +1 -1
- package/dist/api-key/workflows/create-api-keys.js +5 -15
- package/dist/api-key/workflows/create-api-keys.js.map +1 -1
- package/dist/api-key/workflows/delete-api-keys.d.ts +2 -2
- package/dist/api-key/workflows/delete-api-keys.d.ts.map +1 -1
- package/dist/api-key/workflows/delete-api-keys.js +2 -3
- package/dist/api-key/workflows/delete-api-keys.js.map +1 -1
- package/dist/api-key/workflows/revoke-api-keys.d.ts +2 -2
- package/dist/api-key/workflows/revoke-api-keys.js +2 -2
- package/dist/api-key/workflows/update-api-keys.d.ts +2 -2
- package/dist/api-key/workflows/update-api-keys.js +2 -2
- package/dist/defaults/steps/index.d.ts +1 -1
- package/dist/defaults/steps/index.d.ts.map +1 -1
- package/dist/defaults/steps/index.js +1 -15
- package/dist/defaults/steps/index.js.map +1 -1
- package/dist/defaults/workflows/create-defaults.d.ts +7 -11
- package/dist/defaults/workflows/create-defaults.d.ts.map +1 -1
- package/dist/defaults/workflows/create-defaults.js +12 -20
- package/dist/defaults/workflows/create-defaults.js.map +1 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -3
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/dist/customer/index.d.ts +0 -3
- package/dist/customer/index.d.ts.map +0 -1
- package/dist/customer/index.js +0 -19
- package/dist/customer/index.js.map +0 -1
- package/dist/customer/steps/create-addresses.d.ts +0 -25
- package/dist/customer/steps/create-addresses.d.ts.map +0 -1
- package/dist/customer/steps/create-addresses.js +0 -35
- package/dist/customer/steps/create-addresses.js.map +0 -1
- package/dist/customer/steps/create-customers.d.ts +0 -20
- package/dist/customer/steps/create-customers.d.ts.map +0 -1
- package/dist/customer/steps/create-customers.js +0 -30
- package/dist/customer/steps/create-customers.js.map +0 -1
- package/dist/customer/steps/delete-addresses.d.ts +0 -10
- package/dist/customer/steps/delete-addresses.d.ts.map +0 -1
- package/dist/customer/steps/delete-addresses.js +0 -24
- package/dist/customer/steps/delete-addresses.js.map +0 -1
- package/dist/customer/steps/delete-customers.d.ts +0 -10
- package/dist/customer/steps/delete-customers.d.ts.map +0 -1
- package/dist/customer/steps/delete-customers.js +0 -21
- package/dist/customer/steps/delete-customers.js.map +0 -1
- package/dist/customer/steps/index.d.ts +0 -10
- package/dist/customer/steps/index.d.ts.map +0 -1
- package/dist/customer/steps/index.js +0 -26
- package/dist/customer/steps/index.js.map +0 -1
- package/dist/customer/steps/maybe-unset-default-billing-addresses.d.ts +0 -57
- package/dist/customer/steps/maybe-unset-default-billing-addresses.d.ts.map +0 -1
- package/dist/customer/steps/maybe-unset-default-billing-addresses.js +0 -51
- package/dist/customer/steps/maybe-unset-default-billing-addresses.js.map +0 -1
- package/dist/customer/steps/maybe-unset-default-shipping-addresses.d.ts +0 -57
- package/dist/customer/steps/maybe-unset-default-shipping-addresses.d.ts.map +0 -1
- package/dist/customer/steps/maybe-unset-default-shipping-addresses.js +0 -51
- package/dist/customer/steps/maybe-unset-default-shipping-addresses.js.map +0 -1
- package/dist/customer/steps/update-addresses.d.ts +0 -30
- package/dist/customer/steps/update-addresses.d.ts.map +0 -1
- package/dist/customer/steps/update-addresses.js +0 -38
- package/dist/customer/steps/update-addresses.js.map +0 -1
- package/dist/customer/steps/update-customers.d.ts +0 -30
- package/dist/customer/steps/update-customers.d.ts.map +0 -1
- package/dist/customer/steps/update-customers.js +0 -44
- package/dist/customer/steps/update-customers.js.map +0 -1
- package/dist/customer/steps/utils/index.d.ts +0 -3
- package/dist/customer/steps/utils/index.d.ts.map +0 -1
- package/dist/customer/steps/utils/index.js +0 -19
- package/dist/customer/steps/utils/index.js.map +0 -1
- package/dist/customer/steps/utils/unset-address-for-create.d.ts +0 -4
- package/dist/customer/steps/utils/unset-address-for-create.d.ts.map +0 -1
- package/dist/customer/steps/utils/unset-address-for-create.js +0 -20
- package/dist/customer/steps/utils/unset-address-for-create.js.map +0 -1
- package/dist/customer/steps/utils/unset-address-for-update.d.ts +0 -7
- package/dist/customer/steps/utils/unset-address-for-update.d.ts.map +0 -1
- package/dist/customer/steps/utils/unset-address-for-update.js +0 -21
- package/dist/customer/steps/utils/unset-address-for-update.js.map +0 -1
- package/dist/customer/steps/validate-customer-account-creation.d.ts +0 -22
- package/dist/customer/steps/validate-customer-account-creation.d.ts.map +0 -1
- package/dist/customer/steps/validate-customer-account-creation.js +0 -43
- package/dist/customer/steps/validate-customer-account-creation.js.map +0 -1
- package/dist/customer/workflows/create-addresses.d.ts +0 -66
- package/dist/customer/workflows/create-addresses.d.ts.map +0 -1
- package/dist/customer/workflows/create-addresses.js +0 -66
- package/dist/customer/workflows/create-addresses.js.map +0 -1
- package/dist/customer/workflows/create-customer-account.d.ts +0 -44
- package/dist/customer/workflows/create-customer-account.d.ts.map +0 -1
- package/dist/customer/workflows/create-customer-account.js +0 -57
- package/dist/customer/workflows/create-customer-account.js.map +0 -1
- package/dist/customer/workflows/create-customers.d.ts +0 -51
- package/dist/customer/workflows/create-customers.d.ts.map +0 -1
- package/dist/customer/workflows/create-customers.js +0 -58
- package/dist/customer/workflows/create-customers.js.map +0 -1
- package/dist/customer/workflows/delete-addresses.d.ts +0 -47
- package/dist/customer/workflows/delete-addresses.d.ts.map +0 -1
- package/dist/customer/workflows/delete-addresses.js +0 -48
- package/dist/customer/workflows/delete-addresses.js.map +0 -1
- package/dist/customer/workflows/delete-customers.d.ts +0 -38
- package/dist/customer/workflows/delete-customers.d.ts.map +0 -1
- package/dist/customer/workflows/delete-customers.js +0 -50
- package/dist/customer/workflows/delete-customers.js.map +0 -1
- package/dist/customer/workflows/index.d.ts +0 -9
- package/dist/customer/workflows/index.d.ts.map +0 -1
- package/dist/customer/workflows/index.js +0 -25
- package/dist/customer/workflows/index.js.map +0 -1
- package/dist/customer/workflows/remove-customer-account.d.ts +0 -32
- package/dist/customer/workflows/remove-customer-account.d.ts.map +0 -1
- package/dist/customer/workflows/remove-customer-account.js +0 -78
- package/dist/customer/workflows/remove-customer-account.js.map +0 -1
- package/dist/customer/workflows/update-addresses.d.ts +0 -56
- package/dist/customer/workflows/update-addresses.d.ts.map +0 -1
- package/dist/customer/workflows/update-addresses.js +0 -52
- package/dist/customer/workflows/update-addresses.js.map +0 -1
- package/dist/customer/workflows/update-customers.d.ts +0 -53
- package/dist/customer/workflows/update-customers.d.ts.map +0 -1
- package/dist/customer/workflows/update-customers.js +0 -59
- package/dist/customer/workflows/update-customers.js.map +0 -1
- package/dist/customer-group/index.d.ts +0 -3
- package/dist/customer-group/index.d.ts.map +0 -1
- package/dist/customer-group/index.js +0 -19
- package/dist/customer-group/index.js.map +0 -1
- package/dist/customer-group/steps/create-customer-groups.d.ts +0 -11
- package/dist/customer-group/steps/create-customer-groups.d.ts.map +0 -1
- package/dist/customer-group/steps/create-customer-groups.js +0 -21
- package/dist/customer-group/steps/create-customer-groups.js.map +0 -1
- package/dist/customer-group/steps/delete-customer-group-customers.d.ts +0 -7
- package/dist/customer-group/steps/delete-customer-group-customers.d.ts.map +0 -1
- package/dist/customer-group/steps/delete-customer-group-customers.js +0 -21
- package/dist/customer-group/steps/delete-customer-group-customers.js.map +0 -1
- package/dist/customer-group/steps/delete-customer-groups.d.ts +0 -10
- package/dist/customer-group/steps/delete-customer-groups.d.ts.map +0 -1
- package/dist/customer-group/steps/delete-customer-groups.js +0 -21
- package/dist/customer-group/steps/delete-customer-groups.js.map +0 -1
- package/dist/customer-group/steps/index.d.ts +0 -6
- package/dist/customer-group/steps/index.d.ts.map +0 -1
- package/dist/customer-group/steps/index.js +0 -22
- package/dist/customer-group/steps/index.js.map +0 -1
- package/dist/customer-group/steps/link-customer-groups-customer.d.ts +0 -14
- package/dist/customer-group/steps/link-customer-groups-customer.d.ts.map +0 -1
- package/dist/customer-group/steps/link-customer-groups-customer.js +0 -52
- package/dist/customer-group/steps/link-customer-groups-customer.js.map +0 -1
- package/dist/customer-group/steps/link-customers-customer-group.d.ts +0 -14
- package/dist/customer-group/steps/link-customers-customer-group.d.ts.map +0 -1
- package/dist/customer-group/steps/link-customers-customer-group.js +0 -52
- package/dist/customer-group/steps/link-customers-customer-group.js.map +0 -1
- package/dist/customer-group/steps/update-customer-groups.d.ts +0 -30
- package/dist/customer-group/steps/update-customer-groups.d.ts.map +0 -1
- package/dist/customer-group/steps/update-customer-groups.js +0 -41
- package/dist/customer-group/steps/update-customer-groups.js.map +0 -1
- package/dist/customer-group/workflows/create-customer-groups.d.ts +0 -41
- package/dist/customer-group/workflows/create-customer-groups.d.ts.map +0 -1
- package/dist/customer-group/workflows/create-customer-groups.js +0 -34
- package/dist/customer-group/workflows/create-customer-groups.js.map +0 -1
- package/dist/customer-group/workflows/delete-customer-groups.d.ts +0 -31
- package/dist/customer-group/workflows/delete-customer-groups.d.ts.map +0 -1
- package/dist/customer-group/workflows/delete-customer-groups.js +0 -29
- package/dist/customer-group/workflows/delete-customer-groups.js.map +0 -1
- package/dist/customer-group/workflows/index.d.ts +0 -6
- package/dist/customer-group/workflows/index.d.ts.map +0 -1
- package/dist/customer-group/workflows/index.js +0 -22
- package/dist/customer-group/workflows/index.js.map +0 -1
- package/dist/customer-group/workflows/link-customer-groups-customer.d.ts +0 -33
- package/dist/customer-group/workflows/link-customer-groups-customer.d.ts.map +0 -1
- package/dist/customer-group/workflows/link-customer-groups-customer.js +0 -31
- package/dist/customer-group/workflows/link-customer-groups-customer.js.map +0 -1
- package/dist/customer-group/workflows/link-customers-customer-group.d.ts +0 -33
- package/dist/customer-group/workflows/link-customers-customer-group.d.ts.map +0 -1
- package/dist/customer-group/workflows/link-customers-customer-group.js +0 -31
- package/dist/customer-group/workflows/link-customers-customer-group.js.map +0 -1
- package/dist/customer-group/workflows/update-customer-groups.d.ts +0 -45
- package/dist/customer-group/workflows/update-customer-groups.d.ts.map +0 -1
- package/dist/customer-group/workflows/update-customer-groups.js +0 -34
- package/dist/customer-group/workflows/update-customer-groups.js.map +0 -1
- package/dist/defaults/steps/create-default-store.d.ts +0 -31
- package/dist/defaults/steps/create-default-store.d.ts.map +0 -1
- package/dist/defaults/steps/create-default-store.js +0 -67
- package/dist/defaults/steps/create-default-store.js.map +0 -1
- package/dist/store/index.d.ts +0 -3
- package/dist/store/index.d.ts.map +0 -1
- package/dist/store/index.js +0 -19
- package/dist/store/index.js.map +0 -1
- package/dist/store/steps/create-stores.d.ts +0 -12
- package/dist/store/steps/create-stores.d.ts.map +0 -1
- package/dist/store/steps/create-stores.js +0 -26
- package/dist/store/steps/create-stores.js.map +0 -1
- package/dist/store/steps/delete-stores.d.ts +0 -10
- package/dist/store/steps/delete-stores.d.ts.map +0 -1
- package/dist/store/steps/delete-stores.js +0 -21
- package/dist/store/steps/delete-stores.js.map +0 -1
- package/dist/store/steps/index.d.ts +0 -4
- package/dist/store/steps/index.d.ts.map +0 -1
- package/dist/store/steps/index.js +0 -20
- package/dist/store/steps/index.js.map +0 -1
- package/dist/store/steps/update-stores.d.ts +0 -30
- package/dist/store/steps/update-stores.d.ts.map +0 -1
- package/dist/store/steps/update-stores.js +0 -41
- package/dist/store/steps/update-stores.js.map +0 -1
- package/dist/store/workflows/create-stores.d.ts +0 -53
- package/dist/store/workflows/create-stores.d.ts.map +0 -1
- package/dist/store/workflows/create-stores.js +0 -51
- package/dist/store/workflows/create-stores.js.map +0 -1
- package/dist/store/workflows/delete-stores.d.ts +0 -38
- package/dist/store/workflows/delete-stores.d.ts.map +0 -1
- package/dist/store/workflows/delete-stores.js +0 -44
- package/dist/store/workflows/delete-stores.js.map +0 -1
- package/dist/store/workflows/index.d.ts +0 -4
- package/dist/store/workflows/index.d.ts.map +0 -1
- package/dist/store/workflows/index.js +0 -20
- package/dist/store/workflows/index.js.map +0 -1
- package/dist/store/workflows/update-stores.d.ts +0 -32
- package/dist/store/workflows/update-stores.d.ts.map +0 -1
- package/dist/store/workflows/update-stores.js +0 -52
- package/dist/store/workflows/update-stores.js.map +0 -1
|
@@ -16,8 +16,8 @@ export declare const createApiKeysStepId = "create-api-keys";
|
|
|
16
16
|
* const data = createApiKeysStep({
|
|
17
17
|
* api_keys: [
|
|
18
18
|
* {
|
|
19
|
-
* type: "
|
|
20
|
-
* title: "
|
|
19
|
+
* type: "client",
|
|
20
|
+
* title: "Default client key",
|
|
21
21
|
* created_by: "user_123"
|
|
22
22
|
* }
|
|
23
23
|
* ]
|
|
@@ -11,8 +11,8 @@ exports.createApiKeysStepId = "create-api-keys";
|
|
|
11
11
|
* const data = createApiKeysStep({
|
|
12
12
|
* api_keys: [
|
|
13
13
|
* {
|
|
14
|
-
* type: "
|
|
15
|
-
* title: "
|
|
14
|
+
* type: "client",
|
|
15
|
+
* title: "Default client key",
|
|
16
16
|
* created_by: "user_123"
|
|
17
17
|
* }
|
|
18
18
|
* ]
|
|
@@ -15,29 +15,19 @@ export type CreateApiKeysWorkflowInput = {
|
|
|
15
15
|
export type CreateApiKeysWorkflowOutput = ApiKeyDTO[];
|
|
16
16
|
export declare const createApiKeysWorkflowId = "create-api-keys";
|
|
17
17
|
/**
|
|
18
|
-
* This workflow creates one or more API keys
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* You can use this workflow within your customizations or your own custom workflows, allowing you to
|
|
22
|
-
* create API keys within your custom flows.
|
|
18
|
+
* This workflow creates one or more API keys (client or secret). It's used by the
|
|
19
|
+
* Create API Key Admin API Route.
|
|
23
20
|
*
|
|
24
21
|
* @example
|
|
25
|
-
* const { result } = await createApiKeysWorkflow(container)
|
|
26
|
-
* .run({
|
|
22
|
+
* const { result } = await createApiKeysWorkflow(container).run({
|
|
27
23
|
* input: {
|
|
28
24
|
* api_keys: [
|
|
29
|
-
* {
|
|
30
|
-
* type: "publishable",
|
|
31
|
-
* title: "Storefront",
|
|
32
|
-
* created_by: "user_123"
|
|
33
|
-
* }
|
|
25
|
+
* { type: "client", title: "Default client key", created_by: "user_123" }
|
|
34
26
|
* ]
|
|
35
27
|
* }
|
|
36
28
|
* })
|
|
37
29
|
*
|
|
38
|
-
* @summary
|
|
39
|
-
*
|
|
40
|
-
* Create secret or publishable API keys.
|
|
30
|
+
* @summary Create client or secret API keys.
|
|
41
31
|
*/
|
|
42
32
|
export declare const createApiKeysWorkflow: import("@acmekit/framework/workflows-sdk").ReturnWorkflow<CreateApiKeysWorkflowInput, ApiKeyDTO[], [import("@acmekit/framework/workflows-sdk").Hook<"apiKeysCreated", {
|
|
43
33
|
apiKeys: (ApiKeyDTO | WorkflowData<ApiKeyDTO>)[] & ApiKeyDTO[] & import("@acmekit/framework/workflows-sdk").WorkflowDataProperties<ApiKeyDTO[]> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-api-keys.d.ts","sourceRoot":"","sources":["../../../src/api-key/workflows/create-api-keys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAC1E,OAAO,EACL,YAAY,EAIb,MAAM,kCAAkC,CAAA;AAGzC;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,QAAQ,EAAE,eAAe,EAAE,CAAA;CAC5B,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,SAAS,EAAE,CAAA;AAErD,eAAO,MAAM,uBAAuB,oBAAoB,CAAA;AACxD
|
|
1
|
+
{"version":3,"file":"create-api-keys.d.ts","sourceRoot":"","sources":["../../../src/api-key/workflows/create-api-keys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAC1E,OAAO,EACL,YAAY,EAIb,MAAM,kCAAkC,CAAA;AAGzC;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,QAAQ,EAAE,eAAe,EAAE,CAAA;CAC5B,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,SAAS,EAAE,CAAA;AAErD,eAAO,MAAM,uBAAuB,oBAAoB,CAAA;AACxD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,qBAAqB;;;gBAc4pC,CAAC;;;aAD9rC,CAAA"}
|
|
@@ -5,29 +5,19 @@ const workflows_sdk_1 = require("@acmekit/framework/workflows-sdk");
|
|
|
5
5
|
const steps_1 = require("../steps");
|
|
6
6
|
exports.createApiKeysWorkflowId = "create-api-keys";
|
|
7
7
|
/**
|
|
8
|
-
* This workflow creates one or more API keys
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* You can use this workflow within your customizations or your own custom workflows, allowing you to
|
|
12
|
-
* create API keys within your custom flows.
|
|
8
|
+
* This workflow creates one or more API keys (client or secret). It's used by the
|
|
9
|
+
* Create API Key Admin API Route.
|
|
13
10
|
*
|
|
14
11
|
* @example
|
|
15
|
-
* const { result } = await createApiKeysWorkflow(container)
|
|
16
|
-
* .run({
|
|
12
|
+
* const { result } = await createApiKeysWorkflow(container).run({
|
|
17
13
|
* input: {
|
|
18
14
|
* api_keys: [
|
|
19
|
-
* {
|
|
20
|
-
* type: "publishable",
|
|
21
|
-
* title: "Storefront",
|
|
22
|
-
* created_by: "user_123"
|
|
23
|
-
* }
|
|
15
|
+
* { type: "client", title: "Default client key", created_by: "user_123" }
|
|
24
16
|
* ]
|
|
25
17
|
* }
|
|
26
18
|
* })
|
|
27
19
|
*
|
|
28
|
-
* @summary
|
|
29
|
-
*
|
|
30
|
-
* Create secret or publishable API keys.
|
|
20
|
+
* @summary Create client or secret API keys.
|
|
31
21
|
*/
|
|
32
22
|
exports.createApiKeysWorkflow = (0, workflows_sdk_1.createWorkflow)(exports.createApiKeysWorkflowId, (input) => {
|
|
33
23
|
const apiKeys = (0, steps_1.createApiKeysStep)(input);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-api-keys.js","sourceRoot":"","sources":["../../../src/api-key/workflows/create-api-keys.ts"],"names":[],"mappings":";;;AACA,oEAKyC;AACzC,oCAA4C;AAiB/B,QAAA,uBAAuB,GAAG,iBAAiB,CAAA;AACxD
|
|
1
|
+
{"version":3,"file":"create-api-keys.js","sourceRoot":"","sources":["../../../src/api-key/workflows/create-api-keys.ts"],"names":[],"mappings":";;;AACA,oEAKyC;AACzC,oCAA4C;AAiB/B,QAAA,uBAAuB,GAAG,iBAAiB,CAAA;AACxD;;;;;;;;;;;;;;GAcG;AACU,QAAA,qBAAqB,GAAG,IAAA,8BAAc,EACjD,+BAAuB,EACvB,CAAC,KAA+C,EAAE,EAAE;IAClD,MAAM,OAAO,GAAG,IAAA,yBAAiB,EAAC,KAAK,CAAC,CAAA;IAExC,MAAM,cAAc,GAAG,IAAA,0BAAU,EAAC,gBAAgB,EAAE;QAClD,OAAO;KACR,CAAC,CAAA;IAEF,OAAO,IAAI,gCAAgB,CAAC,OAAO,EAAE;QACnC,KAAK,EAAE,CAAC,cAAc,CAAC;KACxB,CAAC,CAAA;AACJ,CAAC,CACF,CAAA"}
|
|
@@ -9,7 +9,7 @@ export type DeleteApiKeysWorkflowInput = {
|
|
|
9
9
|
};
|
|
10
10
|
export declare const deleteApiKeysWorkflowId = "delete-api-keys";
|
|
11
11
|
/**
|
|
12
|
-
* This workflow deletes one or more
|
|
12
|
+
* This workflow deletes one or more client or secret API keys. It's used by the
|
|
13
13
|
* [Delete API Key Admin API Route](https://docs.acmekit.com/api/admin#api-keys_deleteapikeysid).
|
|
14
14
|
*
|
|
15
15
|
* You can use this workflow within your customizations or your own custom workflows, allowing you to
|
|
@@ -25,7 +25,7 @@ export declare const deleteApiKeysWorkflowId = "delete-api-keys";
|
|
|
25
25
|
*
|
|
26
26
|
* @summary
|
|
27
27
|
*
|
|
28
|
-
* Delete
|
|
28
|
+
* Delete client or secret API keys.
|
|
29
29
|
*/
|
|
30
30
|
export declare const deleteApiKeysWorkflow: import("@acmekit/framework/workflows-sdk").ReturnWorkflow<DeleteApiKeysWorkflowInput, unknown, any[]>;
|
|
31
31
|
//# sourceMappingURL=delete-api-keys.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-api-keys.d.ts","sourceRoot":"","sources":["../../../src/api-key/workflows/delete-api-keys.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,GAAG,EAAE,MAAM,EAAE,CAAA;CACd,CAAA;AAED,eAAO,MAAM,uBAAuB,oBAAoB,CAAA;AACxD;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"delete-api-keys.d.ts","sourceRoot":"","sources":["../../../src/api-key/workflows/delete-api-keys.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,GAAG,EAAE,MAAM,EAAE,CAAA;CACd,CAAA;AAED,eAAO,MAAM,uBAAuB,oBAAoB,CAAA;AACxD;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,qBAAqB,uGASjC,CAAA"}
|
|
@@ -7,7 +7,7 @@ const steps_1 = require("../steps");
|
|
|
7
7
|
const utils_1 = require("@acmekit/framework/utils");
|
|
8
8
|
exports.deleteApiKeysWorkflowId = "delete-api-keys";
|
|
9
9
|
/**
|
|
10
|
-
* This workflow deletes one or more
|
|
10
|
+
* This workflow deletes one or more client or secret API keys. It's used by the
|
|
11
11
|
* [Delete API Key Admin API Route](https://docs.acmekit.com/api/admin#api-keys_deleteapikeysid).
|
|
12
12
|
*
|
|
13
13
|
* You can use this workflow within your customizations or your own custom workflows, allowing you to
|
|
@@ -23,11 +23,10 @@ exports.deleteApiKeysWorkflowId = "delete-api-keys";
|
|
|
23
23
|
*
|
|
24
24
|
* @summary
|
|
25
25
|
*
|
|
26
|
-
* Delete
|
|
26
|
+
* Delete client or secret API keys.
|
|
27
27
|
*/
|
|
28
28
|
exports.deleteApiKeysWorkflow = (0, workflows_sdk_1.createWorkflow)(exports.deleteApiKeysWorkflowId, (input) => {
|
|
29
29
|
(0, steps_1.deleteApiKeysStep)(input.ids);
|
|
30
|
-
// Please note, the ids here should be publishable key IDs
|
|
31
30
|
(0, remove_remote_links_1.removeRemoteLinkStep)({
|
|
32
31
|
[utils_1.Modules.API_KEY]: { publishable_key_id: input.ids },
|
|
33
32
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-api-keys.js","sourceRoot":"","sources":["../../../src/api-key/workflows/delete-api-keys.ts"],"names":[],"mappings":";;;AAAA,oEAA+E;AAC/E,gFAA6E;AAC7E,oCAA4C;AAC5C,oDAAkD;AAYrC,QAAA,uBAAuB,GAAG,iBAAiB,CAAA;AACxD;;;;;;;;;;;;;;;;;;GAkBG;AACU,QAAA,qBAAqB,GAAG,IAAA,8BAAc,EACjD,+BAAuB,EACvB,CAAC,KAA+C,EAAsB,EAAE;IACtE,IAAA,yBAAiB,EAAC,KAAK,CAAC,GAAG,CAAC,CAAA;IAE5B,
|
|
1
|
+
{"version":3,"file":"delete-api-keys.js","sourceRoot":"","sources":["../../../src/api-key/workflows/delete-api-keys.ts"],"names":[],"mappings":";;;AAAA,oEAA+E;AAC/E,gFAA6E;AAC7E,oCAA4C;AAC5C,oDAAkD;AAYrC,QAAA,uBAAuB,GAAG,iBAAiB,CAAA;AACxD;;;;;;;;;;;;;;;;;;GAkBG;AACU,QAAA,qBAAqB,GAAG,IAAA,8BAAc,EACjD,+BAAuB,EACvB,CAAC,KAA+C,EAAsB,EAAE;IACtE,IAAA,yBAAiB,EAAC,KAAK,CAAC,GAAG,CAAC,CAAA;IAE5B,IAAA,0CAAoB,EAAC;QACnB,CAAC,eAAO,CAAC,OAAO,CAAC,EAAE,EAAE,kBAAkB,EAAE,KAAK,CAAC,GAAG,EAAE;KACrD,CAAC,CAAA;AACJ,CAAC,CACF,CAAA"}
|
|
@@ -19,7 +19,7 @@ export type RevokeApiKeysWorkflowOutput = ApiKeyDTO[];
|
|
|
19
19
|
export declare const revokeApiKeysWorkflowId = "revoke-api-keys";
|
|
20
20
|
/**
|
|
21
21
|
* This workflow revokes one or more API keys. If the API key is a secret,
|
|
22
|
-
* it can't be used for authentication anymore. If it's
|
|
22
|
+
* it can't be used for authentication anymore. If it's a client key, it can't be used by client applications.
|
|
23
23
|
*
|
|
24
24
|
* This workflow is used by the [Revoke API Key API Route](https://docs.acmekit.com/api/admin#api-keys_postapikeysidrevoke).
|
|
25
25
|
*
|
|
@@ -41,7 +41,7 @@ export declare const revokeApiKeysWorkflowId = "revoke-api-keys";
|
|
|
41
41
|
*
|
|
42
42
|
* @summary
|
|
43
43
|
*
|
|
44
|
-
* Revoke
|
|
44
|
+
* Revoke client or secret API keys.
|
|
45
45
|
*/
|
|
46
46
|
export declare const revokeApiKeysWorkflow: import("@acmekit/framework/workflows-sdk").ReturnWorkflow<RevokeApiKeysWorkflowInput, RevokeApiKeysWorkflowOutput, []>;
|
|
47
47
|
//# sourceMappingURL=revoke-api-keys.d.ts.map
|
|
@@ -6,7 +6,7 @@ const steps_1 = require("../steps");
|
|
|
6
6
|
exports.revokeApiKeysWorkflowId = "revoke-api-keys";
|
|
7
7
|
/**
|
|
8
8
|
* This workflow revokes one or more API keys. If the API key is a secret,
|
|
9
|
-
* it can't be used for authentication anymore. If it's
|
|
9
|
+
* it can't be used for authentication anymore. If it's a client key, it can't be used by client applications.
|
|
10
10
|
*
|
|
11
11
|
* This workflow is used by the [Revoke API Key API Route](https://docs.acmekit.com/api/admin#api-keys_postapikeysidrevoke).
|
|
12
12
|
*
|
|
@@ -28,7 +28,7 @@ exports.revokeApiKeysWorkflowId = "revoke-api-keys";
|
|
|
28
28
|
*
|
|
29
29
|
* @summary
|
|
30
30
|
*
|
|
31
|
-
* Revoke
|
|
31
|
+
* Revoke client or secret API keys.
|
|
32
32
|
*/
|
|
33
33
|
exports.revokeApiKeysWorkflow = (0, workflows_sdk_1.createWorkflow)(exports.revokeApiKeysWorkflowId, (input) => {
|
|
34
34
|
return new workflows_sdk_1.WorkflowResponse((0, steps_1.revokeApiKeysStep)(input));
|
|
@@ -18,7 +18,7 @@ export type UpdateApiKeysWorkflowInput = {
|
|
|
18
18
|
export type UpdateApiKeysWorkflowOutput = ApiKeyDTO[];
|
|
19
19
|
export declare const updateApiKeysWorkflowId = "update-api-keys";
|
|
20
20
|
/**
|
|
21
|
-
* This workflow updates one or more
|
|
21
|
+
* This workflow updates one or more client or secret API keys. It's used by the
|
|
22
22
|
* [Update API Key Admin API Route](https://docs.acmekit.com/api/admin#api-keys_postapikeysid).
|
|
23
23
|
*
|
|
24
24
|
* You can use this workflow within your customizations or your own custom workflows, allowing you to
|
|
@@ -39,7 +39,7 @@ export declare const updateApiKeysWorkflowId = "update-api-keys";
|
|
|
39
39
|
*
|
|
40
40
|
* @summary
|
|
41
41
|
*
|
|
42
|
-
* Update
|
|
42
|
+
* Update client or secret API keys.
|
|
43
43
|
*/
|
|
44
44
|
export declare const updateApiKeysWorkflow: import("@acmekit/framework/workflows-sdk").ReturnWorkflow<UpdateApiKeysWorkflowInput, UpdateApiKeysWorkflowOutput, []>;
|
|
45
45
|
//# sourceMappingURL=update-api-keys.d.ts.map
|
|
@@ -5,7 +5,7 @@ const workflows_sdk_1 = require("@acmekit/framework/workflows-sdk");
|
|
|
5
5
|
const steps_1 = require("../steps");
|
|
6
6
|
exports.updateApiKeysWorkflowId = "update-api-keys";
|
|
7
7
|
/**
|
|
8
|
-
* This workflow updates one or more
|
|
8
|
+
* This workflow updates one or more client or secret API keys. It's used by the
|
|
9
9
|
* [Update API Key Admin API Route](https://docs.acmekit.com/api/admin#api-keys_postapikeysid).
|
|
10
10
|
*
|
|
11
11
|
* You can use this workflow within your customizations or your own custom workflows, allowing you to
|
|
@@ -26,7 +26,7 @@ exports.updateApiKeysWorkflowId = "update-api-keys";
|
|
|
26
26
|
*
|
|
27
27
|
* @summary
|
|
28
28
|
*
|
|
29
|
-
* Update
|
|
29
|
+
* Update client or secret API keys.
|
|
30
30
|
*/
|
|
31
31
|
exports.updateApiKeysWorkflow = (0, workflows_sdk_1.createWorkflow)(exports.updateApiKeysWorkflowId, (input) => {
|
|
32
32
|
return new workflows_sdk_1.WorkflowResponse((0, steps_1.updateApiKeysStep)(input));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/defaults/steps/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/defaults/steps/index.ts"],"names":[],"mappings":""}
|
|
@@ -1,18 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
3
|
+
// Default steps - create-default-store removed (commerce-specific)
|
|
18
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/defaults/steps/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/defaults/steps/index.ts"],"names":[],"mappings":";;AAAA,mEAAmE"}
|
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
export declare const createDefaultsWorkflowID = "create-defaults";
|
|
2
2
|
/**
|
|
3
|
-
* This workflow creates default data for
|
|
4
|
-
* a default
|
|
5
|
-
* to create the default data
|
|
3
|
+
* This workflow creates default data for an AcmeKit application, including
|
|
4
|
+
* a default client API key if none exists. The application uses this workflow
|
|
5
|
+
* to create the default data when first started.
|
|
6
6
|
*
|
|
7
|
-
* You can use this workflow within your customizations or
|
|
8
|
-
* create default data within your custom flows, such as seed scripts.
|
|
7
|
+
* You can use this workflow within your customizations or custom workflows.
|
|
9
8
|
*
|
|
10
9
|
* @example
|
|
11
|
-
* const { result } = await createDefaultsWorkflow(container)
|
|
12
|
-
* .run()
|
|
10
|
+
* const { result } = await createDefaultsWorkflow(container).run()
|
|
13
11
|
*
|
|
14
|
-
* @summary
|
|
15
|
-
*
|
|
16
|
-
* Create default data for a AcmeKit application.
|
|
12
|
+
* @summary Create default data for an AcmeKit application.
|
|
17
13
|
*/
|
|
18
|
-
export declare const createDefaultsWorkflow: import("@acmekit/framework/workflows-sdk").ReturnWorkflow<unknown,
|
|
14
|
+
export declare const createDefaultsWorkflow: import("@acmekit/framework/workflows-sdk").ReturnWorkflow<unknown, undefined, []>;
|
|
19
15
|
//# sourceMappingURL=create-defaults.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-defaults.d.ts","sourceRoot":"","sources":["../../../src/defaults/workflows/create-defaults.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-defaults.d.ts","sourceRoot":"","sources":["../../../src/defaults/workflows/create-defaults.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,wBAAwB,oBAAoB,CAAA;AACzD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,sBAAsB,mFA8BlC,CAAA"}
|
|
@@ -4,49 +4,41 @@ exports.createDefaultsWorkflow = exports.createDefaultsWorkflowID = void 0;
|
|
|
4
4
|
const workflows_sdk_1 = require("@acmekit/framework/workflows-sdk");
|
|
5
5
|
const api_key_1 = require("../../api-key");
|
|
6
6
|
const common_1 = require("../../common");
|
|
7
|
-
const create_default_store_1 = require("../steps/create-default-store");
|
|
8
7
|
exports.createDefaultsWorkflowID = "create-defaults";
|
|
9
8
|
/**
|
|
10
|
-
* This workflow creates default data for
|
|
11
|
-
* a default
|
|
12
|
-
* to create the default data
|
|
9
|
+
* This workflow creates default data for an AcmeKit application, including
|
|
10
|
+
* a default client API key if none exists. The application uses this workflow
|
|
11
|
+
* to create the default data when first started.
|
|
13
12
|
*
|
|
14
|
-
* You can use this workflow within your customizations or
|
|
15
|
-
* create default data within your custom flows, such as seed scripts.
|
|
13
|
+
* You can use this workflow within your customizations or custom workflows.
|
|
16
14
|
*
|
|
17
15
|
* @example
|
|
18
|
-
* const { result } = await createDefaultsWorkflow(container)
|
|
19
|
-
* .run()
|
|
16
|
+
* const { result } = await createDefaultsWorkflow(container).run()
|
|
20
17
|
*
|
|
21
|
-
* @summary
|
|
22
|
-
*
|
|
23
|
-
* Create default data for a AcmeKit application.
|
|
18
|
+
* @summary Create default data for an AcmeKit application.
|
|
24
19
|
*/
|
|
25
20
|
exports.createDefaultsWorkflow = (0, workflows_sdk_1.createWorkflow)(exports.createDefaultsWorkflowID, () => {
|
|
26
|
-
const
|
|
27
|
-
store: {},
|
|
28
|
-
});
|
|
29
|
-
const publishableApiKey = (0, common_1.useQueryGraphStep)({
|
|
21
|
+
const clientApiKey = (0, common_1.useQueryGraphStep)({
|
|
30
22
|
entity: "api_key",
|
|
31
23
|
fields: ["id", "type"],
|
|
32
24
|
filters: {
|
|
33
|
-
type: "
|
|
25
|
+
type: "client",
|
|
34
26
|
},
|
|
35
27
|
options: {
|
|
36
28
|
isList: false,
|
|
37
29
|
},
|
|
38
30
|
});
|
|
39
|
-
(0, workflows_sdk_1.when)({
|
|
31
|
+
(0, workflows_sdk_1.when)({ clientApiKey }, ({ clientApiKey }) => !clientApiKey?.data).then(() => {
|
|
40
32
|
(0, api_key_1.createApiKeysStep)({
|
|
41
33
|
api_keys: [
|
|
42
34
|
{
|
|
43
|
-
title: "Default
|
|
44
|
-
type: "
|
|
35
|
+
title: "Default Client API Key",
|
|
36
|
+
type: "client",
|
|
45
37
|
created_by: "",
|
|
46
38
|
},
|
|
47
39
|
],
|
|
48
40
|
});
|
|
49
41
|
});
|
|
50
|
-
return new workflows_sdk_1.WorkflowResponse(
|
|
42
|
+
return new workflows_sdk_1.WorkflowResponse(void 0);
|
|
51
43
|
});
|
|
52
44
|
//# sourceMappingURL=create-defaults.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-defaults.js","sourceRoot":"","sources":["../../../src/defaults/workflows/create-defaults.ts"],"names":[],"mappings":";;;AAAA,oEAAyF;AACzF,2CAAiD;AACjD,yCAAgD;
|
|
1
|
+
{"version":3,"file":"create-defaults.js","sourceRoot":"","sources":["../../../src/defaults/workflows/create-defaults.ts"],"names":[],"mappings":";;;AAAA,oEAAyF;AACzF,2CAAiD;AACjD,yCAAgD;AAEnC,QAAA,wBAAwB,GAAG,iBAAiB,CAAA;AACzD;;;;;;;;;;;GAWG;AACU,QAAA,sBAAsB,GAAG,IAAA,8BAAc,EAClD,gCAAwB,EACxB,GAAG,EAAE;IACH,MAAM,YAAY,GAAG,IAAA,0BAAiB,EAAC;QACrC,MAAM,EAAE,SAAS;QACjB,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC;QACtB,OAAO,EAAE;YACP,IAAI,EAAE,QAAQ;SACf;QACD,OAAO,EAAE;YACP,MAAM,EAAE,KAAK;SACd;KACF,CAAC,CAAA;IAEF,IAAA,oBAAI,EAAC,EAAE,YAAY,EAAE,EAAE,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC,IAAI,CACpE,GAAG,EAAE;QACH,IAAA,2BAAiB,EAAC;YAChB,QAAQ,EAAE;gBACR;oBACE,KAAK,EAAE,wBAAwB;oBAC/B,IAAI,EAAE,QAAQ;oBACd,UAAU,EAAE,EAAE;iBACf;aACF;SACF,CAAC,CAAA;IACJ,CAAC,CACF,CAAA;IAED,OAAO,IAAI,gCAAgB,CAAC,KAAK,CAAC,CAAC,CAAA;AACrC,CAAC,CACF,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
export * from "./api-key";
|
|
2
2
|
export * from "./auth";
|
|
3
3
|
export * from "./common";
|
|
4
|
-
export * from "./customer";
|
|
5
|
-
export * from "./customer-group";
|
|
6
4
|
export * from "./defaults";
|
|
7
5
|
export * from "./file";
|
|
8
6
|
export * from "./invite";
|
|
@@ -10,7 +8,6 @@ export * from "./locking";
|
|
|
10
8
|
export * from "./notification";
|
|
11
9
|
export * from "./rbac";
|
|
12
10
|
export * from "./settings";
|
|
13
|
-
export * from "./store";
|
|
14
11
|
export * from "./translation";
|
|
15
12
|
export * from "./user";
|
|
16
13
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,QAAQ,CAAA;AACtB,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,QAAQ,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -17,8 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./api-key"), exports);
|
|
18
18
|
__exportStar(require("./auth"), exports);
|
|
19
19
|
__exportStar(require("./common"), exports);
|
|
20
|
-
__exportStar(require("./customer"), exports);
|
|
21
|
-
__exportStar(require("./customer-group"), exports);
|
|
22
20
|
__exportStar(require("./defaults"), exports);
|
|
23
21
|
__exportStar(require("./file"), exports);
|
|
24
22
|
__exportStar(require("./invite"), exports);
|
|
@@ -26,7 +24,6 @@ __exportStar(require("./locking"), exports);
|
|
|
26
24
|
__exportStar(require("./notification"), exports);
|
|
27
25
|
__exportStar(require("./rbac"), exports);
|
|
28
26
|
__exportStar(require("./settings"), exports);
|
|
29
|
-
__exportStar(require("./store"), exports);
|
|
30
27
|
__exportStar(require("./translation"), exports);
|
|
31
28
|
__exportStar(require("./user"), exports);
|
|
32
29
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,yCAAsB;AACtB,2CAAwB;AACxB,6CAA0B;AAC1B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,yCAAsB;AACtB,2CAAwB;AACxB,6CAA0B;AAC1B,yCAAsB;AACtB,2CAAwB;AACxB,4CAAyB;AACzB,iDAA8B;AAC9B,yCAAsB;AACtB,6CAA0B;AAC1B,gDAA6B;AAC7B,yCAAsB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"root":["../src/index.ts","../src/api-key/index.ts","../src/api-key/steps/create-api-keys.ts","../src/api-key/steps/delete-api-keys.ts","../src/api-key/steps/index.ts","../src/api-key/steps/revoke-api-keys.ts","../src/api-key/steps/update-api-keys.ts","../src/api-key/workflows/create-api-keys.ts","../src/api-key/workflows/delete-api-keys.ts","../src/api-key/workflows/index.ts","../src/api-key/workflows/revoke-api-keys.ts","../src/api-key/workflows/update-api-keys.ts","../src/auth/index.ts","../src/auth/steps/index.ts","../src/auth/steps/set-auth-app-metadata.ts","../src/auth/workflows/generate-reset-password-token.ts","../src/auth/workflows/index.ts","../src/auth/workflows/set-auth-app-metadata.ts","../src/common/index.ts","../src/common/steps/create-entities.ts","../src/common/steps/create-remote-links.ts","../src/common/steps/delete-entities.ts","../src/common/steps/dismiss-remote-links.ts","../src/common/steps/emit-event.ts","../src/common/steps/release-event.ts","../src/common/steps/remove-remote-links.ts","../src/common/steps/update-remote-links.ts","../src/common/steps/use-query-graph.ts","../src/common/steps/use-remote-query.ts","../src/common/steps/validate-presence-of.ts","../src/common/steps/__fixtures__/remote-query.ts","../src/common/steps/__tests__/use-query-graph-step.spec.ts","../src/common/workflows/batch-links.ts","../src/common/workflows/create-links.ts","../src/common/workflows/dismiss-links.ts","../src/common/workflows/update-links.ts","../src/
|
|
1
|
+
{"root":["../src/index.ts","../src/api-key/index.ts","../src/api-key/steps/create-api-keys.ts","../src/api-key/steps/delete-api-keys.ts","../src/api-key/steps/index.ts","../src/api-key/steps/revoke-api-keys.ts","../src/api-key/steps/update-api-keys.ts","../src/api-key/workflows/create-api-keys.ts","../src/api-key/workflows/delete-api-keys.ts","../src/api-key/workflows/index.ts","../src/api-key/workflows/revoke-api-keys.ts","../src/api-key/workflows/update-api-keys.ts","../src/auth/index.ts","../src/auth/steps/index.ts","../src/auth/steps/set-auth-app-metadata.ts","../src/auth/workflows/generate-reset-password-token.ts","../src/auth/workflows/index.ts","../src/auth/workflows/set-auth-app-metadata.ts","../src/common/index.ts","../src/common/steps/create-entities.ts","../src/common/steps/create-remote-links.ts","../src/common/steps/delete-entities.ts","../src/common/steps/dismiss-remote-links.ts","../src/common/steps/emit-event.ts","../src/common/steps/release-event.ts","../src/common/steps/remove-remote-links.ts","../src/common/steps/update-remote-links.ts","../src/common/steps/use-query-graph.ts","../src/common/steps/use-remote-query.ts","../src/common/steps/validate-presence-of.ts","../src/common/steps/__fixtures__/remote-query.ts","../src/common/steps/__tests__/use-query-graph-step.spec.ts","../src/common/workflows/batch-links.ts","../src/common/workflows/create-links.ts","../src/common/workflows/dismiss-links.ts","../src/common/workflows/update-links.ts","../src/defaults/index.ts","../src/defaults/steps/index.ts","../src/defaults/workflows/create-defaults.ts","../src/defaults/workflows/index.ts","../src/file/index.ts","../src/file/steps/delete-files.ts","../src/file/steps/index.ts","../src/file/steps/upload-files.ts","../src/file/workflows/delete-files.ts","../src/file/workflows/index.ts","../src/file/workflows/upload-files.ts","../src/invite/index.ts","../src/invite/steps/create-invites.ts","../src/invite/steps/delete-invites.ts","../src/invite/steps/get-invite-roles.ts","../src/invite/steps/index.ts","../src/invite/steps/refresh-invite-tokens.ts","../src/invite/steps/validate-roles-exist.ts","../src/invite/steps/validate-token.ts","../src/invite/workflows/accept-invite.ts","../src/invite/workflows/create-invites.ts","../src/invite/workflows/delete-invites.ts","../src/invite/workflows/index.ts","../src/invite/workflows/refresh-invite-tokens.ts","../src/locking/index.ts","../src/locking/steps/acquire-lock.ts","../src/locking/steps/release-lock.ts","../src/notification/index.ts","../src/notification/steps/index.ts","../src/notification/steps/notify-on-failure.ts","../src/notification/steps/send-notifications.ts","../src/rbac/index.ts","../src/rbac/steps/create-rbac-policies.ts","../src/rbac/steps/create-rbac-role-parents.ts","../src/rbac/steps/create-rbac-role-policies.ts","../src/rbac/steps/create-rbac-roles.ts","../src/rbac/steps/delete-rbac-policies.ts","../src/rbac/steps/delete-rbac-role-policies.ts","../src/rbac/steps/delete-rbac-roles.ts","../src/rbac/steps/index.ts","../src/rbac/steps/set-role-parent.ts","../src/rbac/steps/update-rbac-policies.ts","../src/rbac/steps/update-rbac-role-policies.ts","../src/rbac/steps/update-rbac-roles.ts","../src/rbac/steps/validate-user-permissions.ts","../src/rbac/workflows/create-rbac-policies.ts","../src/rbac/workflows/create-rbac-role-policies.ts","../src/rbac/workflows/create-rbac-roles.ts","../src/rbac/workflows/delete-rbac-policies.ts","../src/rbac/workflows/delete-rbac-role-policies.ts","../src/rbac/workflows/delete-rbac-roles.ts","../src/rbac/workflows/index.ts","../src/rbac/workflows/update-rbac-policies.ts","../src/rbac/workflows/update-rbac-role-policies.ts","../src/rbac/workflows/update-rbac-roles.ts","../src/settings/index.ts","../src/settings/steps/create-view-configuration.ts","../src/settings/steps/index.ts","../src/settings/steps/set-active-view-configuration.ts","../src/settings/steps/update-view-configuration.ts","../src/settings/workflows/create-view-configuration.ts","../src/settings/workflows/index.ts","../src/settings/workflows/update-view-configuration.ts","../src/translation/index.ts","../src/translation/steps/create-translation-settings.ts","../src/translation/steps/create-translations.ts","../src/translation/steps/delete-translation-settings.ts","../src/translation/steps/delete-translations.ts","../src/translation/steps/index.ts","../src/translation/steps/update-translation-settings.ts","../src/translation/steps/update-translations.ts","../src/translation/steps/validate-translations.ts","../src/translation/workflows/batch-translation-settings.ts","../src/translation/workflows/batch-translations.ts","../src/translation/workflows/create-translations.ts","../src/translation/workflows/delete-translations.ts","../src/translation/workflows/index.ts","../src/translation/workflows/update-translations.ts","../src/user/index.ts","../src/user/steps/create-users.ts","../src/user/steps/delete-users.ts","../src/user/steps/index.ts","../src/user/steps/update-users.ts","../src/user/workflows/create-user-account.ts","../src/user/workflows/create-users.ts","../src/user/workflows/delete-users.ts","../src/user/workflows/index.ts","../src/user/workflows/remove-user-account.ts","../src/user/workflows/update-users.ts"],"version":"5.9.3"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acmekit/core-flows",
|
|
3
|
-
"version": "2.13.
|
|
3
|
+
"version": "2.13.16",
|
|
4
4
|
"description": "Set of workflow definitions for AcmeKit",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
"author": "AcmeKit",
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@acmekit/framework": "2.13.
|
|
29
|
+
"@acmekit/framework": "2.13.16"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"csv-parse": "^5.6.0",
|
|
33
33
|
"json-2-csv": "^5.5.4"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@acmekit/framework": "2.13.
|
|
36
|
+
"@acmekit/framework": "2.13.16"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"build": "yarn run -T rimraf dist && yarn run -T tsc --build",
|
package/dist/customer/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/customer/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA"}
|
package/dist/customer/index.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./steps"), exports);
|
|
18
|
-
__exportStar(require("./workflows"), exports);
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/customer/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,8CAA2B"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { CreateCustomerAddressDTO } from "@acmekit/framework/types";
|
|
2
|
-
/**
|
|
3
|
-
* The data to create one or more customer addresses.
|
|
4
|
-
*/
|
|
5
|
-
export type CreateCustomerAddressesStepInput = CreateCustomerAddressDTO[];
|
|
6
|
-
export declare const createCustomerAddressesStepId = "create-customer-addresses";
|
|
7
|
-
/**
|
|
8
|
-
* This step creates one or more customer addresses.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* const data = createCustomerAddressesStep([
|
|
12
|
-
* {
|
|
13
|
-
* customer_id: "cus_123",
|
|
14
|
-
* first_name: "John",
|
|
15
|
-
* last_name: "Doe",
|
|
16
|
-
* address_1: "123 Main St",
|
|
17
|
-
* city: "Anytown",
|
|
18
|
-
* province: "NY",
|
|
19
|
-
* postal_code: "12345",
|
|
20
|
-
* country_code: "us",
|
|
21
|
-
* }
|
|
22
|
-
* ])
|
|
23
|
-
*/
|
|
24
|
-
export declare const createCustomerAddressesStep: import("@acmekit/framework/workflows-sdk").StepFunction<CreateCustomerAddressesStepInput, import("@acmekit/framework/types").CustomerAddressDTO[]>;
|
|
25
|
-
//# sourceMappingURL=create-addresses.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-addresses.d.ts","sourceRoot":"","sources":["../../../src/customer/steps/create-addresses.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EAEzB,MAAM,0BAA0B,CAAA;AAIjC;;GAEG;AACH,MAAM,MAAM,gCAAgC,GAAG,wBAAwB,EAAE,CAAA;AAEzE,eAAO,MAAM,6BAA6B,8BAA8B,CAAA;AACxE;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,2BAA2B,oJAqBvC,CAAA"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createCustomerAddressesStep = exports.createCustomerAddressesStepId = void 0;
|
|
4
|
-
const utils_1 = require("@acmekit/framework/utils");
|
|
5
|
-
const workflows_sdk_1 = require("@acmekit/framework/workflows-sdk");
|
|
6
|
-
exports.createCustomerAddressesStepId = "create-customer-addresses";
|
|
7
|
-
/**
|
|
8
|
-
* This step creates one or more customer addresses.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* const data = createCustomerAddressesStep([
|
|
12
|
-
* {
|
|
13
|
-
* customer_id: "cus_123",
|
|
14
|
-
* first_name: "John",
|
|
15
|
-
* last_name: "Doe",
|
|
16
|
-
* address_1: "123 Main St",
|
|
17
|
-
* city: "Anytown",
|
|
18
|
-
* province: "NY",
|
|
19
|
-
* postal_code: "12345",
|
|
20
|
-
* country_code: "us",
|
|
21
|
-
* }
|
|
22
|
-
* ])
|
|
23
|
-
*/
|
|
24
|
-
exports.createCustomerAddressesStep = (0, workflows_sdk_1.createStep)(exports.createCustomerAddressesStepId, async (data, { container }) => {
|
|
25
|
-
const service = container.resolve(utils_1.Modules.CUSTOMER);
|
|
26
|
-
const addresses = await service.createCustomerAddresses(data);
|
|
27
|
-
return new workflows_sdk_1.StepResponse(addresses, addresses.map((address) => address.id));
|
|
28
|
-
}, async (ids, { container }) => {
|
|
29
|
-
if (!ids?.length) {
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
const service = container.resolve(utils_1.Modules.CUSTOMER);
|
|
33
|
-
await service.deleteCustomerAddresses(ids);
|
|
34
|
-
});
|
|
35
|
-
//# sourceMappingURL=create-addresses.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-addresses.js","sourceRoot":"","sources":["../../../src/customer/steps/create-addresses.ts"],"names":[],"mappings":";;;AAIA,oDAAkD;AAClD,oEAA2E;AAO9D,QAAA,6BAA6B,GAAG,2BAA2B,CAAA;AACxE;;;;;;;;;;;;;;;;GAgBG;AACU,QAAA,2BAA2B,GAAG,IAAA,0BAAU,EACnD,qCAA6B,EAC7B,KAAK,EAAE,IAAsC,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;IAC9D,MAAM,OAAO,GAAG,SAAS,CAAC,OAAO,CAAyB,eAAO,CAAC,QAAQ,CAAC,CAAA;IAE3E,MAAM,SAAS,GAAG,MAAM,OAAO,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAA;IAE7D,OAAO,IAAI,4BAAY,CACrB,SAAS,EACT,SAAS,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,CACvC,CAAA;AACH,CAAC,EACD,KAAK,EAAE,GAAG,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;IAC3B,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,CAAC;QACjB,OAAM;IACR,CAAC;IAED,MAAM,OAAO,GAAG,SAAS,CAAC,OAAO,CAAyB,eAAO,CAAC,QAAQ,CAAC,CAAA;IAE3E,MAAM,OAAO,CAAC,uBAAuB,CAAC,GAAG,CAAC,CAAA;AAC5C,CAAC,CACF,CAAA"}
|