cloudcommerce 0.0.2 → 0.0.3

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 (46) hide show
  1. package/{.eslintrc.js → .eslintrc.cjs} +4 -4
  2. package/.github/renovate.json +2 -1
  3. package/CHANGELOG.md +13 -0
  4. package/README.md +2 -2
  5. package/package.json +7 -6
  6. package/packages/api/dist/index.d.ts +65 -0
  7. package/packages/api/dist/index.js +42 -24
  8. package/packages/api/dist/index.js.map +1 -1
  9. package/packages/api/dist/types/applications.d.ts +208 -0
  10. package/packages/api/dist/types/authentications.d.ts +97 -0
  11. package/packages/api/dist/types/brands.d.ts +148 -0
  12. package/packages/api/dist/types/carts.d.ts +292 -0
  13. package/packages/api/dist/types/categories.d.ts +190 -0
  14. package/packages/api/dist/types/collections.d.ts +151 -0
  15. package/packages/api/dist/types/customers.d.ts +495 -0
  16. package/packages/api/dist/types/grids.d.ts +149 -0
  17. package/packages/api/dist/types/orders.d.ts +1588 -0
  18. package/packages/api/dist/types/procedures.d.ts +139 -0
  19. package/packages/api/dist/types/products.d.ts +1284 -0
  20. package/packages/api/dist/types/stores.d.ts +120 -0
  21. package/packages/api/dist/types/triggers.d.ts +79 -0
  22. package/packages/api/dist/types.d.ts +65 -0
  23. package/packages/api/dist/types.js +2 -0
  24. package/packages/api/dist/types.js.map +1 -0
  25. package/packages/api/package.json +4 -2
  26. package/packages/api/scripts/build.mjs +5 -0
  27. package/packages/api/src/index.ts +46 -55
  28. package/packages/api/src/types/applications.d.ts +208 -0
  29. package/packages/api/src/types/authentications.d.ts +97 -0
  30. package/packages/api/src/types/brands.d.ts +148 -0
  31. package/packages/api/src/types/carts.d.ts +292 -0
  32. package/packages/api/src/types/categories.d.ts +190 -0
  33. package/packages/api/src/types/collections.d.ts +151 -0
  34. package/packages/api/src/types/customers.d.ts +495 -0
  35. package/packages/api/src/types/grids.d.ts +149 -0
  36. package/packages/api/src/types/orders.d.ts +1588 -0
  37. package/packages/api/src/types/procedures.d.ts +139 -0
  38. package/packages/api/src/types/products.d.ts +1284 -0
  39. package/packages/api/src/types/stores.d.ts +120 -0
  40. package/packages/api/src/types/triggers.d.ts +79 -0
  41. package/packages/api/src/types.ts +74 -0
  42. package/packages/api/tests/types.test.ts +13 -0
  43. package/packages/apps/discounts/package.json +1 -1
  44. package/packages/storefront/package.json +1 -1
  45. package/{packages/api/tsconfig.json → tsconfig.json} +8 -3
  46. package/turbo.json +3 -0
@@ -0,0 +1,149 @@
1
+ /* tslint:disable */
2
+ /**
3
+ * This file was automatically generated by json-schema-to-typescript.
4
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
5
+ * and run json-schema-to-typescript to regenerate this file.
6
+ */
7
+
8
+ export interface Grids {
9
+ _id: string;
10
+ created_at: string;
11
+ updated_at: string;
12
+ store_id: number;
13
+ /**
14
+ * Grid title
15
+ */
16
+ title: string;
17
+ /**
18
+ * Text translations for internationalization
19
+ */
20
+ i18n?: {
21
+ /**
22
+ * Language specific text fields
23
+ *
24
+ * This interface was referenced by `undefined`'s JSON-Schema definition
25
+ * via the `patternProperty` "^[a-z]{2}(_[a-z]{2})?$".
26
+ */
27
+ [k: string]: {
28
+ /**
29
+ * Grid title
30
+ */
31
+ title?: string;
32
+ };
33
+ };
34
+ /**
35
+ * Identifier for integrations and syncronizations, generally the grid name normalized
36
+ */
37
+ grid_id?: string;
38
+ /**
39
+ * Pre-defined options for this grid, used in specifications, customization and variations
40
+ */
41
+ options?: {
42
+ /**
43
+ * Option ID (ObjectID) [auto]
44
+ */
45
+ _id?: string;
46
+ /**
47
+ * Option text value displayed for the client
48
+ */
49
+ text: string;
50
+ /**
51
+ * Text translations for internationalization
52
+ */
53
+ i18n?: {
54
+ /**
55
+ * Language specific text fields
56
+ *
57
+ * This interface was referenced by `undefined`'s JSON-Schema definition
58
+ * via the `patternProperty` "^[a-z]{2}(_[a-z]{2})?$".
59
+ */
60
+ [k: string]: {
61
+ /**
62
+ * Option text value displayed for the client
63
+ */
64
+ text?: string;
65
+ };
66
+ };
67
+ /**
68
+ * Default normalized value to use in integrations
69
+ */
70
+ value?: string;
71
+ /**
72
+ * Normalized values to use in specific integrations (ID in property)
73
+ */
74
+ external_values?: {
75
+ /**
76
+ * Attribute text value
77
+ *
78
+ * This interface was referenced by `undefined`'s JSON-Schema definition
79
+ * via the `patternProperty` "^[a-z0-9_]{2,30}$".
80
+ */
81
+ [k: string]: string;
82
+ };
83
+ /**
84
+ * Option color palette (if the grid involves colors), starting by main color
85
+ */
86
+ colors?: string[];
87
+ /**
88
+ * Default price alteration for product with this option for customization or variations
89
+ */
90
+ add_to_price?: {
91
+ /**
92
+ * Type of price addition
93
+ */
94
+ type?: 'percentage' | 'fixed';
95
+ /**
96
+ * Additional value, could be negative
97
+ */
98
+ addition: number;
99
+ };
100
+ }[];
101
+ /**
102
+ * If this grid accept custom value defined by customer (product customization)
103
+ */
104
+ custom_value?: boolean;
105
+ /**
106
+ * If this grid accept customer file attachment
107
+ */
108
+ attachment?: boolean;
109
+ /**
110
+ * Default price alteration for product with this grid for customization or variations
111
+ */
112
+ add_to_price?: {
113
+ /**
114
+ * Type of price addition
115
+ */
116
+ type?: 'percentage' | 'fixed';
117
+ /**
118
+ * Additional value, could be negative
119
+ */
120
+ addition: number;
121
+ };
122
+ /**
123
+ * List of custom attributes
124
+ */
125
+ metafields?: {
126
+ /**
127
+ * String to help distinguish who (or which app) created and can use the metafield
128
+ */
129
+ namespace?: string;
130
+ /**
131
+ * Field name
132
+ */
133
+ field?: string;
134
+ /**
135
+ * Custom property value
136
+ */
137
+ value: {
138
+ [k: string]: unknown;
139
+ };
140
+ }[];
141
+ /**
142
+ * Flags to associate additional info
143
+ */
144
+ flags?: string[];
145
+ /**
146
+ * Optional notes with additional info about this product
147
+ */
148
+ notes?: string;
149
+ }