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,139 @@
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
+ /**
9
+ * Procedure object model
10
+ */
11
+ export interface Procedures {
12
+ _id: string;
13
+ created_at: string;
14
+ updated_at: string;
15
+ store_id: number;
16
+ /**
17
+ * Procedure title
18
+ */
19
+ title: string;
20
+ /**
21
+ * Short procedure description in plain text
22
+ */
23
+ short_description?: string;
24
+ /**
25
+ * List of events that call this procedure
26
+ */
27
+ triggers: {
28
+ /**
29
+ * Method (HTTP verb) of the event, if undefined will match any method
30
+ */
31
+ method?: 'POST' | 'PATCH' | 'PUT' | 'DELETE';
32
+ /**
33
+ * Type of action taken, if undefined will match any action
34
+ */
35
+ action?: 'create' | 'change' | 'delete';
36
+ /**
37
+ * API resource
38
+ */
39
+ resource:
40
+ | 'authentications'
41
+ | 'products'
42
+ | 'categories'
43
+ | 'brands'
44
+ | 'collections'
45
+ | 'grids'
46
+ | 'customers'
47
+ | 'carts'
48
+ | 'orders'
49
+ | 'applications'
50
+ | 'stores';
51
+ /**
52
+ * Resource ID, if specified
53
+ */
54
+ resource_id?: string;
55
+ /**
56
+ * Subresource slug (URL path), use wildcard `*` to match either none or any subresource
57
+ */
58
+ subresource?: string | null;
59
+ /**
60
+ * Subresource ID, if specified
61
+ */
62
+ subresource_id?: string;
63
+ /**
64
+ * Property created or updated with the event, if undefined will match any fields
65
+ */
66
+ field?: string;
67
+ }[];
68
+ /**
69
+ * List of notifications to be sent when this procedure is called. In some properties you can use variables from trigger object with (tr.*) notation, eg.: (tr.body.name)
70
+ */
71
+ webhooks: {
72
+ /**
73
+ * API where notification should be sent
74
+ */
75
+ api: {
76
+ /**
77
+ * Use this property if webhook is to store API (api.e-com.plus)
78
+ */
79
+ store_api?: {
80
+ /**
81
+ * API endpoint, such as /products.json, you can also include variables
82
+ */
83
+ endpoint?: string;
84
+ /**
85
+ * API version
86
+ */
87
+ version?: 'v1' | 'current';
88
+ };
89
+ /**
90
+ * Use this property if webhook is to any external API (not api.e-com.plus)
91
+ */
92
+ external_api?: {
93
+ /**
94
+ * Full URL to external API endpoint, you can also use variables here
95
+ */
96
+ uri: string;
97
+ /**
98
+ * List of headers to be sent on the request
99
+ */
100
+ headers?: {
101
+ /**
102
+ * Header field name, eg.: X-Access-Token
103
+ */
104
+ name: string;
105
+ /**
106
+ * Header field value, you can also use variables here
107
+ */
108
+ value: string;
109
+ }[];
110
+ };
111
+ };
112
+ /**
113
+ * Method (HTTP verb) to send request
114
+ */
115
+ method: 'GET' | 'POST' | 'PATCH' | 'PUT' | 'DELETE';
116
+ /**
117
+ * Send body on notification, if true and map_body undefined, trigger object will be sent
118
+ */
119
+ send_body?: boolean;
120
+ /**
121
+ * Object to send, it is possible to use variables as properties values
122
+ */
123
+ map_body?: {
124
+ [k: string]: unknown;
125
+ };
126
+ }[];
127
+ /**
128
+ * Tag to identify object, use only lowercase letters, digits and underscore
129
+ */
130
+ tag?: string;
131
+ /**
132
+ * Flags to associate additional info
133
+ */
134
+ flags?: string[];
135
+ /**
136
+ * Optional notes with additional info about this procedure
137
+ */
138
+ notes?: string;
139
+ }