cloudcommerce 0.0.33 → 0.0.35

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.
Files changed (70) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/action.yml +4 -0
  3. package/package.json +6 -6
  4. package/packages/__skeleton/package.json +4 -1
  5. package/packages/__skeleton/src/{index.js → index.ts} +0 -0
  6. package/packages/__skeleton/tsconfig.json +3 -0
  7. package/packages/api/lib/index.d.ts +2 -112
  8. package/packages/api/lib/types.d.ts +1 -1
  9. package/packages/api/package.json +1 -1
  10. package/packages/api/src/types.ts +4 -0
  11. package/packages/apps/discounts/lib/index.js +4 -0
  12. package/packages/apps/discounts/lib/index.js.map +1 -0
  13. package/packages/apps/discounts/package.json +4 -1
  14. package/packages/apps/discounts/src/index.ts +7 -0
  15. package/packages/apps/discounts/tsconfig.json +3 -0
  16. package/packages/cli/lib/index.js +11 -2
  17. package/packages/cli/package.json +1 -1
  18. package/packages/cli/src/index.ts +12 -3
  19. package/packages/firebase/lib/config.d.ts +15 -0
  20. package/packages/firebase/lib/config.js +3 -0
  21. package/packages/firebase/lib/config.js.map +1 -1
  22. package/packages/firebase/lib/defaults.d.ts +4 -0
  23. package/packages/firebase/lib/env.d.ts +8 -0
  24. package/packages/firebase/lib/handlers/check-store-events.d.ts +2 -0
  25. package/packages/firebase/lib/{methods → handlers}/check-store-events.js +11 -1
  26. package/packages/firebase/lib/handlers/check-store-events.js.map +1 -0
  27. package/packages/firebase/lib/index.d.ts +5 -0
  28. package/packages/firebase/lib/index.js +4 -4
  29. package/packages/firebase/lib/index.js.map +1 -1
  30. package/packages/firebase/lib/types.d.ts +6 -0
  31. package/packages/firebase/lib/types.js +2 -0
  32. package/packages/firebase/lib/types.js.map +1 -0
  33. package/packages/firebase/package.json +3 -1
  34. package/packages/firebase/src/config.ts +3 -0
  35. package/packages/firebase/src/{methods → handlers}/check-store-events.ts +11 -0
  36. package/packages/firebase/src/index.ts +4 -5
  37. package/packages/firebase/src/types.ts +11 -0
  38. package/packages/firebase/tsconfig.json +4 -1
  39. package/packages/modules/CHANGELOG.md +1 -0
  40. package/packages/modules/README.md +1 -0
  41. package/packages/modules/lib/firebase/index.js +16 -0
  42. package/packages/modules/lib/firebase/index.js.map +1 -0
  43. package/packages/modules/lib/index.js +21 -0
  44. package/packages/modules/lib/index.js.map +1 -0
  45. package/packages/modules/package.json +33 -0
  46. package/packages/modules/schemas/@checkout.cjs +1015 -0
  47. package/packages/modules/schemas/apply_discount.cjs +324 -0
  48. package/packages/modules/schemas/calculate_shipping.cjs +666 -0
  49. package/packages/modules/schemas/create_transaction.cjs +1001 -0
  50. package/packages/modules/schemas/list_payments.cjs +852 -0
  51. package/packages/modules/scripts/build-types.sh +33 -0
  52. package/packages/modules/src/firebase/index.ts +16 -0
  53. package/packages/modules/src/index.ts +21 -0
  54. package/packages/modules/tsconfig.json +3 -0
  55. package/packages/storefront/package.json +2 -2
  56. package/packages/types/CHANGELOG.md +1 -0
  57. package/packages/types/README.md +1 -0
  58. package/packages/types/index.ts +66 -0
  59. package/packages/types/modules/@checkout:params.d.ts +920 -0
  60. package/packages/types/modules/apply_discount:params.d.ts +154 -0
  61. package/packages/types/modules/apply_discount:response.d.ts +71 -0
  62. package/packages/types/modules/calculate_shipping:params.d.ts +275 -0
  63. package/packages/types/modules/calculate_shipping:response.d.ts +402 -0
  64. package/packages/types/modules/create_transaction:params.d.ts +515 -0
  65. package/packages/types/modules/create_transaction:response.d.ts +261 -0
  66. package/packages/types/modules/list_payments:params.d.ts +323 -0
  67. package/packages/types/modules/list_payments:response.d.ts +266 -0
  68. package/packages/types/package.json +21 -0
  69. package/pnpm-lock.yaml +503 -274
  70. package/packages/firebase/lib/methods/check-store-events.js.map +0 -1
@@ -1,3 +1,6 @@
1
1
  {
2
- "extends": "../../tsconfig.json"
2
+ "extends": "../../tsconfig.json",
3
+ "compilerOptions": {
4
+ "declaration": true
5
+ }
3
6
  }
@@ -0,0 +1 @@
1
+ Please refer to GitHub [repository releases](https://github.com/ecomplus/cloud-commerce/releases) or monorepo unified [CHANGELOG.md](https://github.com/ecomplus/cloud-commerce/blob/main/CHANGELOG.md).
@@ -0,0 +1 @@
1
+ # `@cloudcommerce/modules`
@@ -0,0 +1,16 @@
1
+ /* eslint-disable import/prefer-default-export */
2
+ import 'source-map-support/register.js';
3
+ import { initializeApp } from 'firebase-admin';
4
+ // import { logger } from 'firebase-functions';
5
+ // eslint-disable-next-line import/no-unresolved
6
+ import { onRequest } from 'firebase-functions/v2/https';
7
+ import config from '@cloudcommerce/firebase/lib/config';
8
+
9
+ initializeApp();
10
+ const options = config.get().httpsFunctionOptions;
11
+
12
+ export const modApplyDiscount = onRequest(options, (request, response) => {
13
+ process.env.ECOM_API_KEY = '***';
14
+ response.send('Hello modules!');
15
+ });
16
+ // # sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/firebase/index.ts"],"names":[],"mappings":"AAAA,iDAAiD;AAEjD,OAAO,gCAAgC,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,+CAA+C;AAC/C,gDAAgD;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,MAAM,MAAM,oCAAoC,CAAC;AAExD,aAAa,EAAE,CAAC;AAChB,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,EAAE,CAAC,oBAAoB,CAAC;AAElD,MAAM,CAAC,MAAM,gBAAgB,GAAG,SAAS,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,EAAE;IACvE,OAAO,CAAC,GAAG,CAAC,YAAY,GAAG,KAAK,CAAC;IACjC,QAAQ,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;AAClC,CAAC,CAAC,CAAC"}
@@ -0,0 +1,21 @@
1
+ import * as calculateShipping from '../schemas/calculate_shipping.cjs';
2
+ import * as applyDiscount from '../schemas/apply_discount.cjs';
3
+ import * as listPayments from '../schemas/list_payments.cjs';
4
+ import * as createTransaction from '../schemas/create_transaction.cjs';
5
+ import * as checkout from '../schemas/@checkout.cjs';
6
+
7
+ export default {
8
+ calculateShipping,
9
+ applyDiscount,
10
+ listPayments,
11
+ createTransaction,
12
+ checkout,
13
+ schemas: {
14
+ calculate_shipping: calculateShipping,
15
+ apply_discount: applyDiscount,
16
+ list_payments: listPayments,
17
+ create_transaction: createTransaction,
18
+ '@checkout': checkout,
19
+ },
20
+ };
21
+ // # sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,iBAAiB,MAAM,mCAAmC,CAAC;AACvE,OAAO,KAAK,aAAa,MAAM,+BAA+B,CAAC;AAC/D,OAAO,KAAK,YAAY,MAAM,8BAA8B,CAAC;AAC7D,OAAO,KAAK,iBAAiB,MAAM,mCAAmC,CAAC;AACvE,OAAO,KAAK,QAAQ,MAAM,0BAA0B,CAAC;AAErD,eAAe;IACb,iBAAiB;IACjB,aAAa;IACb,YAAY;IACZ,iBAAiB;IACjB,QAAQ;IAER,OAAO,EAAE;QACP,kBAAkB,EAAE,iBAAiB;QACrC,cAAc,EAAE,aAAa;QAC7B,aAAa,EAAE,YAAY;QAC3B,kBAAkB,EAAE,iBAAiB;QACrC,WAAW,EAAE,QAAQ;KACtB;CACF,CAAC"}
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "@cloudcommerce/modules",
3
+ "type": "module",
4
+ "version": "0.0.35",
5
+ "description": "E-Com Plus Cloud Commerce modules API",
6
+ "main": "lib/index.cjs",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/ecomplus/cloud-commerce.git",
10
+ "directory": "packages/modules"
11
+ },
12
+ "author": "E-Com Club Softwares para E-commerce <ti@e-com.club>",
13
+ "license": "Apache 2.0 with Commons Clause",
14
+ "bugs": {
15
+ "url": "https://github.com/ecomplus/cloud-commerce/issues"
16
+ },
17
+ "homepage": "https://github.com/ecomplus/cloud-commerce/tree/main/packages/modules#readme",
18
+ "scripts": {
19
+ "build": "sh ../../scripts/build-lib.sh",
20
+ "build:types": "sh scripts/build-types.sh"
21
+ },
22
+ "dependencies": {
23
+ "@cloudcommerce/firebase": "workspace:*",
24
+ "firebase-admin": "^11.0.0",
25
+ "firebase-functions": "^3.22.0",
26
+ "source-map-support": "^0.5.21"
27
+ },
28
+ "devDependencies": {
29
+ "@cloudcommerce/types": "workspace:*",
30
+ "@firebase/app-types": "^0.7.0",
31
+ "json-schema-to-typescript": "^11.0.1"
32
+ }
33
+ }