@webiny/api-apw 0.0.0-unstable.78f581c1d2 → 0.0.0-unstable.97a151f74d

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/api-apw",
3
- "version": "0.0.0-unstable.78f581c1d2",
3
+ "version": "0.0.0-unstable.97a151f74d",
4
4
  "keywords": [
5
5
  "apw:base"
6
6
  ],
@@ -17,27 +17,27 @@
17
17
  "@aws-sdk/client-cloudwatch-events": "3.186.0",
18
18
  "@babel/runtime": "7.19.0",
19
19
  "@commodo/fields": "1.1.2-beta.20",
20
- "@webiny/api": "0.0.0-unstable.78f581c1d2",
21
- "@webiny/api-admin-settings": "0.0.0-unstable.78f581c1d2",
22
- "@webiny/api-headless-cms": "0.0.0-unstable.78f581c1d2",
23
- "@webiny/api-i18n": "0.0.0-unstable.78f581c1d2",
24
- "@webiny/api-i18n-ddb": "0.0.0-unstable.78f581c1d2",
25
- "@webiny/api-mailer": "0.0.0-unstable.78f581c1d2",
26
- "@webiny/api-page-builder": "0.0.0-unstable.78f581c1d2",
27
- "@webiny/api-security": "0.0.0-unstable.78f581c1d2",
28
- "@webiny/api-tenancy": "0.0.0-unstable.78f581c1d2",
29
- "@webiny/api-wcp": "0.0.0-unstable.78f581c1d2",
30
- "@webiny/db-dynamodb": "0.0.0-unstable.78f581c1d2",
31
- "@webiny/error": "0.0.0-unstable.78f581c1d2",
32
- "@webiny/handler": "0.0.0-unstable.78f581c1d2",
33
- "@webiny/handler-client": "0.0.0-unstable.78f581c1d2",
34
- "@webiny/handler-db": "0.0.0-unstable.78f581c1d2",
35
- "@webiny/handler-graphql": "0.0.0-unstable.78f581c1d2",
36
- "@webiny/handler-logs": "0.0.0-unstable.78f581c1d2",
37
- "@webiny/plugins": "0.0.0-unstable.78f581c1d2",
38
- "@webiny/pubsub": "0.0.0-unstable.78f581c1d2",
39
- "@webiny/utils": "0.0.0-unstable.78f581c1d2",
40
- "@webiny/validation": "0.0.0-unstable.78f581c1d2",
20
+ "@webiny/api": "0.0.0-unstable.97a151f74d",
21
+ "@webiny/api-admin-settings": "0.0.0-unstable.97a151f74d",
22
+ "@webiny/api-headless-cms": "0.0.0-unstable.97a151f74d",
23
+ "@webiny/api-i18n": "0.0.0-unstable.97a151f74d",
24
+ "@webiny/api-i18n-ddb": "0.0.0-unstable.97a151f74d",
25
+ "@webiny/api-mailer": "0.0.0-unstable.97a151f74d",
26
+ "@webiny/api-page-builder": "0.0.0-unstable.97a151f74d",
27
+ "@webiny/api-security": "0.0.0-unstable.97a151f74d",
28
+ "@webiny/api-tenancy": "0.0.0-unstable.97a151f74d",
29
+ "@webiny/api-wcp": "0.0.0-unstable.97a151f74d",
30
+ "@webiny/db-dynamodb": "0.0.0-unstable.97a151f74d",
31
+ "@webiny/error": "0.0.0-unstable.97a151f74d",
32
+ "@webiny/handler": "0.0.0-unstable.97a151f74d",
33
+ "@webiny/handler-client": "0.0.0-unstable.97a151f74d",
34
+ "@webiny/handler-db": "0.0.0-unstable.97a151f74d",
35
+ "@webiny/handler-graphql": "0.0.0-unstable.97a151f74d",
36
+ "@webiny/handler-logs": "0.0.0-unstable.97a151f74d",
37
+ "@webiny/plugins": "0.0.0-unstable.97a151f74d",
38
+ "@webiny/pubsub": "0.0.0-unstable.97a151f74d",
39
+ "@webiny/utils": "0.0.0-unstable.97a151f74d",
40
+ "@webiny/validation": "0.0.0-unstable.97a151f74d",
41
41
  "dayjs": "1.11.5",
42
42
  "lodash": "4.17.21",
43
43
  "mdbid": "1.0.0"
@@ -46,14 +46,14 @@
46
46
  "@babel/cli": "^7.19.3",
47
47
  "@babel/core": "^7.19.3",
48
48
  "@babel/preset-env": "^7.19.4",
49
- "@webiny/api-headless-cms-ddb": "^0.0.0-unstable.78f581c1d2",
50
- "@webiny/api-page-builder-so-ddb": "^0.0.0-unstable.78f581c1d2",
51
- "@webiny/api-security-so-ddb": "^0.0.0-unstable.78f581c1d2",
52
- "@webiny/api-tenancy-so-ddb": "^0.0.0-unstable.78f581c1d2",
53
- "@webiny/cli": "^0.0.0-unstable.78f581c1d2",
54
- "@webiny/handler-aws": "^0.0.0-unstable.78f581c1d2",
55
- "@webiny/project-utils": "^0.0.0-unstable.78f581c1d2",
56
- "@webiny/wcp": "^0.0.0-unstable.78f581c1d2",
49
+ "@webiny/api-headless-cms-ddb": "^0.0.0-unstable.97a151f74d",
50
+ "@webiny/api-page-builder-so-ddb": "^0.0.0-unstable.97a151f74d",
51
+ "@webiny/api-security-so-ddb": "^0.0.0-unstable.97a151f74d",
52
+ "@webiny/api-tenancy-so-ddb": "^0.0.0-unstable.97a151f74d",
53
+ "@webiny/cli": "^0.0.0-unstable.97a151f74d",
54
+ "@webiny/handler-aws": "^0.0.0-unstable.97a151f74d",
55
+ "@webiny/project-utils": "^0.0.0-unstable.97a151f74d",
56
+ "@webiny/wcp": "^0.0.0-unstable.97a151f74d",
57
57
  "get-yarn-workspaces": "^1.0.2",
58
58
  "graphql": "^15.7.2",
59
59
  "jest": "^28.1.0",
@@ -72,5 +72,5 @@
72
72
  "build": "yarn webiny run build",
73
73
  "watch": "yarn webiny run watch"
74
74
  },
75
- "gitHead": "78f581c1d2e5e6936aa11b9452a66d2a3652a1b2"
75
+ "gitHead": "97a151f74d8c5679323989fcc8cc7036be0f150e"
76
76
  }
@@ -61,7 +61,9 @@ const createWorkflowStorageOperations = params => {
61
61
  async listWorkflows(params) {
62
62
  const model = await getWorkflowModel();
63
63
  security.disableAuthorization();
64
- const [entries, meta] = await cms.listLatestEntries(model, (0, _objectSpread2.default)({}, params));
64
+ const [entries, meta] = await cms.listLatestEntries(model, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, params), {}, {
65
+ where: (0, _objectSpread2.default)({}, params.where || {})
66
+ }));
65
67
  security.enableAuthorization();
66
68
  return [entries.map(entry => (0, _index.getFieldValues)(entry, _index.baseFields)), meta];
67
69
  },
@@ -1 +1 @@
1
- {"version":3,"names":["formatReviewersForRefInput","data","modelId","steps","map","step","reviewers","id","createWorkflowStorageOperations","params","cms","security","getWorkflowModel","disableAuthorization","model","getModel","WORKFLOW_MODEL_ID","enableAuthorization","WebinyError","getWorkflow","entry","getEntryById","getFieldValues","baseFields","listWorkflows","entries","meta","listLatestEntries","createWorkflow","reviewerModel","getReviewerModel","createEntry","updateWorkflow","existingEntry","input","updateEntry","deleteWorkflow","deleteEntry"],"sources":["workflowStorageOperations.ts"],"sourcesContent":["import { CreateApwWorkflowParams } from \"~/types\";\nimport { ApwStorageOperations, ApwWorkflowStorageOperations } from \"./types\";\nimport {\n baseFields,\n CreateApwStorageOperationsParams,\n getFieldValues\n} from \"~/storageOperations/index\";\nimport WebinyError from \"@webiny/error\";\nimport { WORKFLOW_MODEL_ID } from \"~/storageOperations/models/workflow.model\";\n\ntype ReviewersRefInput = CreateApwWorkflowParams<{ modelId: string; id: string }>;\n\nconst formatReviewersForRefInput = (\n data: CreateApwWorkflowParams,\n modelId: string\n): ReviewersRefInput => {\n return {\n ...data,\n steps: data.steps.map(step => ({\n ...step,\n reviewers: step.reviewers.map(id => ({\n id,\n modelId\n }))\n }))\n };\n};\n\nexport const createWorkflowStorageOperations = (\n params: CreateApwStorageOperationsParams\n): ApwWorkflowStorageOperations => {\n const { cms, security } = params;\n const getWorkflowModel = async () => {\n security.disableAuthorization();\n const model = await cms.getModel(WORKFLOW_MODEL_ID);\n security.enableAuthorization();\n if (!model) {\n throw new WebinyError(\n `Could not find \"${WORKFLOW_MODEL_ID}\" model.`,\n \"MODEL_NOT_FOUND_ERROR\"\n );\n }\n return model;\n };\n const getWorkflow: ApwWorkflowStorageOperations[\"getWorkflow\"] = async ({ id }) => {\n const model = await getWorkflowModel();\n security.disableAuthorization();\n const entry = await cms.getEntryById(model, id);\n security.enableAuthorization();\n return getFieldValues(entry, baseFields);\n };\n return {\n getWorkflowModel,\n getWorkflow,\n async listWorkflows(params) {\n const model = await getWorkflowModel();\n security.disableAuthorization();\n const [entries, meta] = await cms.listLatestEntries(model, {\n ...params\n });\n security.enableAuthorization();\n return [entries.map(entry => getFieldValues(entry, baseFields)), meta];\n },\n async createWorkflow(this: ApwStorageOperations, params) {\n const model = await getWorkflowModel();\n const reviewerModel = await this.getReviewerModel();\n\n const data = formatReviewersForRefInput(params.data, reviewerModel.modelId);\n security.disableAuthorization();\n const entry = await cms.createEntry(model, data);\n security.enableAuthorization();\n\n return getFieldValues(entry, baseFields);\n },\n async updateWorkflow(this: ApwStorageOperations, params) {\n const model = await getWorkflowModel();\n const reviewerModel = await this.getReviewerModel();\n /**\n * We're fetching the existing entry here because we're not accepting \"app\" field as input,\n * but, we still need to retain its value after the \"update\" operation.\n */\n const existingEntry = await getWorkflow({ id: params.id });\n const input = {\n ...existingEntry,\n ...params.data\n };\n const data = formatReviewersForRefInput(\n input as CreateApwWorkflowParams,\n reviewerModel.modelId\n );\n security.disableAuthorization();\n const entry = await cms.updateEntry(model, params.id, data);\n security.enableAuthorization();\n return getFieldValues(entry, baseFields);\n },\n async deleteWorkflow(params) {\n const model = await getWorkflowModel();\n security.disableAuthorization();\n await cms.deleteEntry(model, params.id);\n security.enableAuthorization();\n return true;\n }\n };\n};\n"],"mappings":";;;;;;;;;;;AAEA;;AAKA;;AACA;;AAIA,MAAMA,0BAA0B,GAAG,CAC/BC,IAD+B,EAE/BC,OAF+B,KAGX;EACpB,mEACOD,IADP;IAEIE,KAAK,EAAEF,IAAI,CAACE,KAAL,CAAWC,GAAX,CAAeC,IAAI,gEACnBA,IADmB;MAEtBC,SAAS,EAAED,IAAI,CAACC,SAAL,CAAeF,GAAf,CAAmBG,EAAE,KAAK;QACjCA,EADiC;QAEjCL;MAFiC,CAAL,CAArB;IAFW,EAAnB;EAFX;AAUH,CAdD;;AAgBO,MAAMM,+BAA+B,GACxCC,MAD2C,IAEZ;EAC/B,MAAM;IAAEC,GAAF;IAAOC;EAAP,IAAoBF,MAA1B;;EACA,MAAMG,gBAAgB,GAAG,Y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elId","steps","map","step","reviewers","id","createWorkflowStorageOperations","params","cms","security","getWorkflowModel","disableAuthorization","model","getModel","WORKFLOW_MODEL_ID","enableAuthorization","WebinyError","getWorkflow","entry","getEntryById","getFieldValues","baseFields","listWorkflows","entries","meta","listLatestEntries","where","createWorkflow","reviewerModel","getReviewerModel","createEntry","updateWorkflow","existingEntry","input","updateEntry","deleteWorkflow","deleteEntry"],"sources":["workflowStorageOperations.ts"],"sourcesContent":["import { CreateApwWorkflowParams } from \"~/types\";\nimport { ApwStorageOperations, ApwWorkflowStorageOperations } from \"./types\";\nimport {\n baseFields,\n CreateApwStorageOperationsParams,\n getFieldValues\n} from \"~/storageOperations/index\";\nimport WebinyError from \"@webiny/error\";\nimport { WORKFLOW_MODEL_ID } from \"~/storageOperations/models/workflow.model\";\n\ntype ReviewersRefInput = CreateApwWorkflowParams<{ modelId: string; id: string }>;\n\nconst formatReviewersForRefInput = (\n data: CreateApwWorkflowParams,\n modelId: string\n): ReviewersRefInput => {\n return {\n ...data,\n steps: data.steps.map(step => ({\n ...step,\n reviewers: step.reviewers.map(id => ({\n id,\n modelId\n }))\n }))\n };\n};\n\nexport const createWorkflowStorageOperations = (\n params: CreateApwStorageOperationsParams\n): ApwWorkflowStorageOperations => {\n const { cms, security } = params;\n const getWorkflowModel = async () => {\n security.disableAuthorization();\n const model = await cms.getModel(WORKFLOW_MODEL_ID);\n security.enableAuthorization();\n if (!model) {\n throw new WebinyError(\n `Could not find \"${WORKFLOW_MODEL_ID}\" model.`,\n \"MODEL_NOT_FOUND_ERROR\"\n );\n }\n return model;\n };\n const getWorkflow: ApwWorkflowStorageOperations[\"getWorkflow\"] = async ({ id }) => {\n const model = await getWorkflowModel();\n security.disableAuthorization();\n const entry = await cms.getEntryById(model, id);\n security.enableAuthorization();\n return getFieldValues(entry, baseFields);\n };\n return {\n getWorkflowModel,\n getWorkflow,\n async listWorkflows(params) {\n const model = await getWorkflowModel();\n security.disableAuthorization();\n const [entries, meta] = await cms.listLatestEntries(model, {\n ...params,\n where: {\n ...(params.where || {})\n }\n });\n security.enableAuthorization();\n return [entries.map(entry => getFieldValues(entry, baseFields)), meta];\n },\n async createWorkflow(this: ApwStorageOperations, params) {\n const model = await getWorkflowModel();\n const reviewerModel = await this.getReviewerModel();\n\n const data = formatReviewersForRefInput(params.data, reviewerModel.modelId);\n security.disableAuthorization();\n const entry = await cms.createEntry(model, data);\n security.enableAuthorization();\n\n return getFieldValues(entry, baseFields);\n },\n async updateWorkflow(this: ApwStorageOperations, params) {\n const model = await getWorkflowModel();\n const reviewerModel = await this.getReviewerModel();\n /**\n * We're fetching the existing entry here because we're not accepting \"app\" field as input,\n * but, we still need to retain its value after the \"update\" operation.\n */\n const existingEntry = await getWorkflow({ id: params.id });\n const input = {\n ...existingEntry,\n ...params.data\n };\n const data = formatReviewersForRefInput(\n input as CreateApwWorkflowParams,\n reviewerModel.modelId\n );\n security.disableAuthorization();\n const entry = await cms.updateEntry(model, params.id, data);\n security.enableAuthorization();\n return getFieldValues(entry, baseFields);\n },\n async deleteWorkflow(params) {\n const model = await getWorkflowModel();\n security.disableAuthorization();\n await cms.deleteEntry(model, params.id);\n security.enableAuthorization();\n return true;\n }\n };\n};\n"],"mappings":";;;;;;;;;;;AAEA;;AAKA;;AACA;;AAIA,MAAMA,0BAA0B,GAAG,CAC/BC,IAD+B,EAE/BC,OAF+B,KAGX;EACpB,mEACOD,IADP;IAEIE,KAAK,EAAEF,IAAI,CAACE,KAAL,CAAWC,GAAX,CAAeC,IAAI,gEACnBA,IADmB;MAEtBC,SAAS,EAAED,IAAI,CAACC,SAAL,CAAeF,GAAf,CAAmBG,EAAE,KAAK;QACjCA,EADiC;QAEjCL;MAFiC,CAAL,CAArB;IAFW,EAAnB;EAFX;AAUH,CAdD;;AAgBO,MAAMM,+BAA+B,GACxCC,MAD2C,IAEZ;EAC/B,MAAM;IAAEC,GAAF;IAAOC;EAAP,IAAoBF,MAA1B;;EACA,MAAMG,gBAAgB,GAAG,YAAY;IACj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