@cimplify/sdk 0.44.14 → 0.44.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.
Files changed (75) hide show
  1. package/dist/advanced.d.mts +1 -1
  2. package/dist/advanced.d.ts +1 -1
  3. package/dist/advanced.js +21 -21
  4. package/dist/advanced.mjs +2 -2
  5. package/dist/{chunk-6TVQQYQ5.mjs → chunk-6AZZ6AOF.mjs} +21 -1
  6. package/dist/{chunk-EZK2FXTM.mjs → chunk-7NML226B.mjs} +1 -1
  7. package/dist/{chunk-BAWKQRIB.js → chunk-CFD4J32N.js} +21 -21
  8. package/dist/{chunk-OMAP327U.js → chunk-MBGQP6FZ.js} +62 -61
  9. package/dist/{chunk-V2O5AO7I.js → chunk-MNIKXG7W.js} +26 -0
  10. package/dist/{chunk-3WD6U5RD.mjs → chunk-UXLQ7WXI.mjs} +4 -3
  11. package/dist/chunk-XL4CX75J.js +9370 -0
  12. package/dist/chunk-ZLEFMQC6.mjs +9318 -0
  13. package/dist/cli/commands/deploy.mjs +9 -1
  14. package/dist/{client-lvLvB1_K.d.ts → client-D6ZisKco.d.ts} +7 -0
  15. package/dist/{client-CkGlXZRd.d.mts → client-Dh-bHyhU.d.mts} +7 -0
  16. package/dist/index.d.mts +1 -1
  17. package/dist/index.d.ts +1 -1
  18. package/dist/index.js +106 -106
  19. package/dist/index.mjs +3 -3
  20. package/dist/mock/cli.mjs +2 -1
  21. package/dist/mock/library.js +2 -1
  22. package/dist/mock/library.mjs +2 -1
  23. package/dist/mock/msw.js +2 -1
  24. package/dist/mock/msw.mjs +2 -1
  25. package/dist/react.d.mts +1 -1
  26. package/dist/react.d.ts +1 -1
  27. package/dist/react.js +80 -80
  28. package/dist/react.mjs +3 -3
  29. package/dist/server-CWpUlLOQ.d.mts +1003 -0
  30. package/dist/server-CWpUlLOQ.d.ts +1003 -0
  31. package/dist/server.d.mts +2 -2
  32. package/dist/server.d.ts +2 -2
  33. package/dist/server.js +5 -5
  34. package/dist/server.mjs +3 -3
  35. package/dist/testing/suite.d.mts +60 -0
  36. package/dist/testing/suite.d.ts +60 -0
  37. package/dist/testing/suite.js +169 -0
  38. package/dist/testing/suite.mjs +165 -0
  39. package/dist/testing.d.mts +1359 -0
  40. package/dist/testing.d.ts +1359 -0
  41. package/dist/testing.js +213 -0
  42. package/dist/testing.mjs +4 -0
  43. package/dist/utils.js +28 -28
  44. package/dist/utils.mjs +1 -1
  45. package/package.json +18 -3
  46. package/templates/storefront-bakery/__tests__/brand.test.ts +4 -0
  47. package/templates/storefront-bakery/__tests__/cart-flow.test.ts +4 -0
  48. package/templates/storefront-bakery/__tests__/contract.test.ts +4 -0
  49. package/templates/storefront-bakery/package.json +11 -3
  50. package/templates/storefront-bakery/vitest.config.ts +9 -0
  51. package/templates/storefront-fashion/__tests__/brand.test.ts +4 -0
  52. package/templates/storefront-fashion/__tests__/cart-flow.test.ts +4 -0
  53. package/templates/storefront-fashion/__tests__/contract.test.ts +4 -0
  54. package/templates/storefront-fashion/package.json +11 -3
  55. package/templates/storefront-fashion/vitest.config.ts +9 -0
  56. package/templates/storefront-grocery/__tests__/brand.test.ts +4 -0
  57. package/templates/storefront-grocery/__tests__/cart-flow.test.ts +4 -0
  58. package/templates/storefront-grocery/__tests__/contract.test.ts +4 -0
  59. package/templates/storefront-grocery/package.json +11 -3
  60. package/templates/storefront-grocery/vitest.config.ts +9 -0
  61. package/templates/storefront-restaurant/__tests__/brand.test.ts +4 -0
  62. package/templates/storefront-restaurant/__tests__/cart-flow.test.ts +4 -0
  63. package/templates/storefront-restaurant/__tests__/contract.test.ts +4 -0
  64. package/templates/storefront-restaurant/package.json +11 -3
  65. package/templates/storefront-restaurant/vitest.config.ts +9 -0
  66. package/templates/storefront-retail/__tests__/brand.test.ts +4 -0
  67. package/templates/storefront-retail/__tests__/cart-flow.test.ts +4 -0
  68. package/templates/storefront-retail/__tests__/contract.test.ts +4 -0
  69. package/templates/storefront-retail/package.json +11 -3
  70. package/templates/storefront-retail/vitest.config.ts +9 -0
  71. package/templates/storefront-services/__tests__/brand.test.ts +4 -0
  72. package/templates/storefront-services/__tests__/cart-flow.test.ts +4 -0
  73. package/templates/storefront-services/__tests__/contract.test.ts +4 -0
  74. package/templates/storefront-services/package.json +11 -3
  75. package/templates/storefront-services/vitest.config.ts +9 -0
@@ -0,0 +1,4 @@
1
+ import { createBrandSuite } from "@cimplify/sdk/testing/suite";
2
+ import { brand } from "../lib/brand";
3
+
4
+ createBrandSuite({ brand });
@@ -0,0 +1,4 @@
1
+ import { createCartFlowSuite } from "@cimplify/sdk/testing/suite";
2
+ import { brand } from "../lib/brand";
3
+
4
+ createCartFlowSuite({ seed: brand.mock.seed, businessId: brand.mock.businessId });
@@ -0,0 +1,4 @@
1
+ import { createContractSuite } from "@cimplify/sdk/testing/suite";
2
+ import { brand } from "../lib/brand";
3
+
4
+ createContractSuite({ seed: brand.mock.seed });
@@ -8,10 +8,17 @@
8
8
  "dev:mock": "bunx @cimplify/sdk --seed retail",
9
9
  "build": "next build",
10
10
  "start": "next start",
11
- "lint": "next lint"
11
+ "lint": "next lint",
12
+ "typecheck": "tsc --noEmit",
13
+ "test": "vitest",
14
+ "test:run": "vitest run",
15
+ "check:brand": "vitest run __tests__/brand.test.ts",
16
+ "check:cart": "vitest run __tests__/cart-flow.test.ts",
17
+ "check:contract": "vitest run __tests__/contract.test.ts",
18
+ "check": "bun run typecheck && bun run lint && bun run test:run"
12
19
  },
13
20
  "dependencies": {
14
- "@cimplify/sdk": "^0.44.4",
21
+ "@cimplify/sdk": "^0.44.14",
15
22
  "next": "^16.2.4",
16
23
  "react": "^19.0.0",
17
24
  "react-dom": "^19.0.0"
@@ -23,6 +30,7 @@
23
30
  "@types/react-dom": "^19.0.0",
24
31
  "concurrently": "^9.0.0",
25
32
  "tailwindcss": "^4.2.4",
26
- "typescript": "^5.9.3"
33
+ "typescript": "^5.9.3",
34
+ "vitest": "^4.1.5"
27
35
  }
28
36
  }
@@ -0,0 +1,9 @@
1
+ import { defineConfig } from "vitest/config";
2
+
3
+ export default defineConfig({
4
+ test: {
5
+ environment: "node",
6
+ include: ["__tests__/**/*.test.ts"],
7
+ globals: false,
8
+ },
9
+ });
@@ -0,0 +1,4 @@
1
+ import { createBrandSuite } from "@cimplify/sdk/testing/suite";
2
+ import { brand } from "../lib/brand";
3
+
4
+ createBrandSuite({ brand });
@@ -0,0 +1,4 @@
1
+ import { createCartFlowSuite } from "@cimplify/sdk/testing/suite";
2
+ import { brand } from "../lib/brand";
3
+
4
+ createCartFlowSuite({ seed: brand.mock.seed, businessId: brand.mock.businessId });
@@ -0,0 +1,4 @@
1
+ import { createContractSuite } from "@cimplify/sdk/testing/suite";
2
+ import { brand } from "../lib/brand";
3
+
4
+ createContractSuite({ seed: brand.mock.seed });
@@ -8,10 +8,17 @@
8
8
  "dev:mock": "bunx @cimplify/sdk --seed services",
9
9
  "build": "next build",
10
10
  "start": "next start",
11
- "lint": "next lint"
11
+ "lint": "next lint",
12
+ "typecheck": "tsc --noEmit",
13
+ "test": "vitest",
14
+ "test:run": "vitest run",
15
+ "check:brand": "vitest run __tests__/brand.test.ts",
16
+ "check:cart": "vitest run __tests__/cart-flow.test.ts",
17
+ "check:contract": "vitest run __tests__/contract.test.ts",
18
+ "check": "bun run typecheck && bun run lint && bun run test:run"
12
19
  },
13
20
  "dependencies": {
14
- "@cimplify/sdk": "^0.44.4",
21
+ "@cimplify/sdk": "^0.44.14",
15
22
  "next": "^16.2.4",
16
23
  "react": "^19.0.0",
17
24
  "react-dom": "^19.0.0"
@@ -23,6 +30,7 @@
23
30
  "@types/react-dom": "^19.0.0",
24
31
  "concurrently": "^9.0.0",
25
32
  "tailwindcss": "^4.2.4",
26
- "typescript": "^5.9.3"
33
+ "typescript": "^5.9.3",
34
+ "vitest": "^4.1.5"
27
35
  }
28
36
  }
@@ -0,0 +1,9 @@
1
+ import { defineConfig } from "vitest/config";
2
+
3
+ export default defineConfig({
4
+ test: {
5
+ environment: "node",
6
+ include: ["__tests__/**/*.test.ts"],
7
+ globals: false,
8
+ },
9
+ });