@prismatic-io/components-fluent-commerce 0.0.0-stage → 0.1.0

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.
@@ -0,0 +1,359 @@
1
+ //#region src/types/customers.d.ts
2
+ interface StringAttribute {
3
+ name: string;
4
+ type: "STRING";
5
+ value: unknown;
6
+ }
7
+ //#endregion
8
+ //#region npm-dist/.entry.d.ts
9
+ declare const _default: import("@prismatic-io/spectral").CallableComponent<{
10
+ key: "fluent-commerce";
11
+ documentationUrl: "https://prismatic.io/docs/components/fluent-commerce/";
12
+ public: true;
13
+ display: {
14
+ label: string;
15
+ description: string;
16
+ iconPath: string;
17
+ category: "Application Connectors";
18
+ };
19
+ actions: {
20
+ createProduct: import("@prismatic-io/spectral").ActionDefinition<{
21
+ connection: {
22
+ label: string;
23
+ type: "connection";
24
+ required: true;
25
+ comments: string;
26
+ };
27
+ productCatalogueRef: {
28
+ label: string;
29
+ type: "string";
30
+ required: true;
31
+ example: string;
32
+ placeholder: string;
33
+ clean: (value: unknown, defaultValue?: string) => string;
34
+ comments: string;
35
+ };
36
+ productRef: {
37
+ label: string;
38
+ type: "string";
39
+ required: true;
40
+ example: string;
41
+ placeholder: string;
42
+ clean: (value: unknown, defaultValue?: string) => string;
43
+ comments: string;
44
+ };
45
+ productType: {
46
+ label: string;
47
+ type: "string";
48
+ required: true;
49
+ example: string;
50
+ default: string;
51
+ placeholder: string;
52
+ clean: (value: unknown, defaultValue?: string) => string;
53
+ comments: string;
54
+ };
55
+ productName: {
56
+ label: string;
57
+ type: "string";
58
+ required: true;
59
+ example: string;
60
+ placeholder: string;
61
+ clean: (value: unknown, defaultValue?: string) => string;
62
+ comments: string;
63
+ };
64
+ productSummary: {
65
+ label: string;
66
+ type: "string";
67
+ required: true;
68
+ example: string;
69
+ placeholder: string;
70
+ clean: (value: unknown, defaultValue?: string) => string;
71
+ comments: string;
72
+ };
73
+ gtin: {
74
+ label: string;
75
+ type: "string";
76
+ required: true;
77
+ example: string;
78
+ placeholder: string;
79
+ clean: (value: unknown, defaultValue?: string) => string;
80
+ comments: string;
81
+ };
82
+ priceCurrency: {
83
+ label: string;
84
+ type: "string";
85
+ required: true;
86
+ example: string;
87
+ placeholder: string;
88
+ clean: (value: unknown, defaultValue?: string) => string;
89
+ comments: string;
90
+ };
91
+ priceValue: {
92
+ label: string;
93
+ type: "string";
94
+ required: true;
95
+ example: string;
96
+ placeholder: string;
97
+ clean: (value: unknown, defaultValue?: number) => number;
98
+ comments: string;
99
+ };
100
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
101
+ data: any;
102
+ }>;
103
+ genericRequest: import("@prismatic-io/spectral").ActionDefinition<{
104
+ connection: {
105
+ label: string;
106
+ type: "connection";
107
+ required: true;
108
+ comments: string;
109
+ };
110
+ query: {
111
+ label: string;
112
+ type: "code";
113
+ required: true;
114
+ language: "graphql";
115
+ default: string;
116
+ placeholder: string;
117
+ clean: (value: unknown, defaultValue?: string) => string;
118
+ comments: string;
119
+ };
120
+ variables: {
121
+ label: string;
122
+ type: "string";
123
+ required: false;
124
+ collection: "keyvaluelist";
125
+ clean: (val: unknown) => Record<string, unknown>;
126
+ comments: string;
127
+ };
128
+ variablesObject: {
129
+ label: string;
130
+ type: "code";
131
+ language: "json";
132
+ required: false;
133
+ example: string;
134
+ placeholder: string;
135
+ clean: (value: unknown) => object | undefined;
136
+ comments: string;
137
+ };
138
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
139
+ data: any;
140
+ }>;
141
+ getCurrentUser: import("@prismatic-io/spectral").ActionDefinition<{
142
+ connection: {
143
+ label: string;
144
+ type: "connection";
145
+ required: true;
146
+ comments: string;
147
+ };
148
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
149
+ data: any;
150
+ }>;
151
+ createCustomer: import("@prismatic-io/spectral").ActionDefinition<{
152
+ connection: {
153
+ label: string;
154
+ type: "connection";
155
+ required: true;
156
+ comments: string;
157
+ };
158
+ retailerId: {
159
+ label: string;
160
+ type: "string";
161
+ example: string;
162
+ placeholder: string;
163
+ required: true;
164
+ clean: (value: unknown, defaultValue?: string) => string;
165
+ comments: string;
166
+ };
167
+ customerEmail: {
168
+ label: string;
169
+ type: "string";
170
+ example: string;
171
+ placeholder: string;
172
+ required: true;
173
+ clean: (value: unknown, defaultValue?: string) => string;
174
+ comments: string;
175
+ };
176
+ firstName: {
177
+ label: string;
178
+ type: "string";
179
+ example: string;
180
+ placeholder: string;
181
+ required: true;
182
+ clean: (value: unknown, defaultValue?: string) => string;
183
+ comments: string;
184
+ };
185
+ promotionOptIn: {
186
+ label: string;
187
+ type: "boolean";
188
+ required: true;
189
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
190
+ comments: string;
191
+ };
192
+ lastName: {
193
+ label: string;
194
+ type: "string";
195
+ example: string;
196
+ placeholder: string;
197
+ required: false;
198
+ clean: (value: unknown) => string | undefined;
199
+ comments: string;
200
+ };
201
+ phoneNumber: {
202
+ label: string;
203
+ type: "string";
204
+ example: string;
205
+ placeholder: string;
206
+ required: false;
207
+ clean: (value: unknown) => string | undefined;
208
+ comments: string;
209
+ };
210
+ country: {
211
+ label: string;
212
+ type: "string";
213
+ example: string;
214
+ placeholder: string;
215
+ required: false;
216
+ clean: (value: unknown) => string | undefined;
217
+ comments: string;
218
+ };
219
+ timezone: {
220
+ label: string;
221
+ type: "string";
222
+ example: string;
223
+ placeholder: string;
224
+ required: false;
225
+ clean: (value: unknown) => string | undefined;
226
+ comments: string;
227
+ };
228
+ attributes: {
229
+ label: string;
230
+ type: "string";
231
+ required: false;
232
+ collection: "keyvaluelist";
233
+ clean: (attributes: unknown) => StringAttribute[];
234
+ comments: string;
235
+ };
236
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
237
+ data: any;
238
+ }>;
239
+ getCustomerByEmailAddress: import("@prismatic-io/spectral").ActionDefinition<{
240
+ connection: {
241
+ label: string;
242
+ type: "connection";
243
+ required: true;
244
+ comments: string;
245
+ };
246
+ emailAddress: {
247
+ label: string;
248
+ type: "string";
249
+ example: string;
250
+ placeholder: string;
251
+ required: true;
252
+ clean: (value: unknown, defaultValue?: string) => string;
253
+ comments: string;
254
+ };
255
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
256
+ data: any;
257
+ }>;
258
+ };
259
+ connections: import("@prismatic-io/spectral").KeyedConnection<{
260
+ key: "fluent-password-grant";
261
+ display: {
262
+ description: string;
263
+ label: string;
264
+ };
265
+ inputs: {
266
+ host: {
267
+ label: string;
268
+ placeholder: string;
269
+ type: "string";
270
+ required: true;
271
+ shown: true;
272
+ comments: string;
273
+ example: string;
274
+ };
275
+ username: {
276
+ label: string;
277
+ placeholder: string;
278
+ type: "string";
279
+ required: true;
280
+ shown: true;
281
+ comments: string;
282
+ example: string;
283
+ };
284
+ password: {
285
+ label: string;
286
+ placeholder: string;
287
+ type: "password";
288
+ required: true;
289
+ shown: true;
290
+ comments: string;
291
+ };
292
+ clientId: {
293
+ label: string;
294
+ placeholder: string;
295
+ type: "string";
296
+ required: true;
297
+ shown: true;
298
+ comments: string;
299
+ };
300
+ clientSecret: {
301
+ label: string;
302
+ placeholder: string;
303
+ type: "password";
304
+ required: true;
305
+ shown: true;
306
+ comments: string;
307
+ };
308
+ };
309
+ }, "fluent-password-grant">[];
310
+ triggers: {
311
+ pollChangesTrigger: import("@prismatic-io/spectral").PollingTriggerDefinition<{
312
+ connection: {
313
+ label: string;
314
+ type: "connection";
315
+ required: true;
316
+ comments: string;
317
+ };
318
+ lookBackDate: {
319
+ label: string;
320
+ placeholder: string;
321
+ type: "string";
322
+ required: false;
323
+ comments: string;
324
+ example: string;
325
+ clean: (value: unknown) => string;
326
+ };
327
+ retailerId: {
328
+ label: string;
329
+ type: "string";
330
+ required: false;
331
+ example: string;
332
+ comments: string;
333
+ clean: (value: unknown) => number | undefined;
334
+ };
335
+ showNewRecords: {
336
+ label: string;
337
+ type: "boolean";
338
+ required: false;
339
+ default: string;
340
+ comments: string;
341
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
342
+ };
343
+ showUpdatedRecords: {
344
+ label: string;
345
+ type: "boolean";
346
+ required: false;
347
+ default: string;
348
+ comments: string;
349
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
350
+ };
351
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, import("@prismatic-io/spectral").TriggerPayload<Record<string, unknown>>, boolean, {
352
+ payload: import("@prismatic-io/spectral").TriggerPayload;
353
+ }, import("@prismatic-io/spectral").Inputs>;
354
+ };
355
+ hooks: {
356
+ error: (error: unknown) => unknown;
357
+ };
358
+ }>;
359
+ export = _default;
package/package.json CHANGED
@@ -1,6 +1,60 @@
1
1
  {
2
2
  "name": "@prismatic-io/components-fluent-commerce",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "main": "./npm-dist/index.cjs",
5
+ "types": "./npm-dist/index.d.cts",
6
+ "exports": {
7
+ ".": {
8
+ "types": "./npm-dist/index.d.cts",
9
+ "default": "./npm-dist/index.cjs"
10
+ }
11
+ },
12
+ "description": "Manage orders within Fluent Commerce",
13
+ "license": "Apache-2.0",
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/prismatic-io/components.git",
17
+ "directory": "components/fluent-commerce"
18
+ },
19
+ "publishConfig": {
20
+ "access": "public"
21
+ },
22
+ "files": [
23
+ "npm-dist",
24
+ "dist"
25
+ ],
26
+ "prismatic": {
27
+ "component": "./dist/index.js"
28
+ },
29
+ "scripts": {
30
+ "lint": "biome check --write .",
31
+ "format": "biome format --write .",
32
+ "build": "npm run format && npm run lint && tsdown",
33
+ "typecheck": "tsc --noEmit",
34
+ "generate:manifest": "npm run build && npx @prismatic-io/spectral component-manifest",
35
+ "generate:manifest:dev": "npm run build && npx @prismatic-io/spectral component-manifest --skip-signature-verify",
36
+ "test": "vitest run",
37
+ "prepare": "npm run build",
38
+ "publish:platform": "npm run build && prism components:publish"
39
+ },
40
+ "peerDependencies": {
41
+ "@prismatic-io/spectral": "^10.38.5"
42
+ },
43
+ "dependencies": {
44
+ "graphql": "16.14.2",
45
+ "graphql-request": "7.4.0",
46
+ "lodash.merge": "4.6.2",
47
+ "url-join": "4.0.1"
48
+ },
49
+ "devDependencies": {
50
+ "@biomejs/biome": "2.5.1",
51
+ "@types/lodash.merge": "4.6.7",
52
+ "@types/node": "^26.6.5",
53
+ "@types/url-join": "4.0.0",
54
+ "nock": "14.0.17",
55
+ "tsdown": "0.22.3",
56
+ "typescript": "6.0.3",
57
+ "vitest": "^5.0.4",
58
+ "@prismatic-io/spectral": "^10.38.5"
59
+ }
60
+ }