@prismatic-io/components-duro-plm 0.0.0-stage → 0.0.1

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,334 @@
1
+ //#region src/types/ComponentNode.d.ts
2
+ interface ComponentNode {
3
+ id: string;
4
+ name: string;
5
+ mass?: number | null;
6
+ created?: string;
7
+ lastModified?: string;
8
+ }
9
+ //#endregion
10
+ //#region npm-dist/.entry.d.ts
11
+ declare const _default: import("@prismatic-io/spectral").CallableComponent<{
12
+ key: "duro-plm";
13
+ public: true;
14
+ documentationUrl: "https://prismatic.io/docs/components/duro-plm/";
15
+ display: {
16
+ label: string;
17
+ description: string;
18
+ iconPath: string;
19
+ category: "Application Connectors";
20
+ };
21
+ hooks: {
22
+ error: (error: unknown) => unknown;
23
+ };
24
+ actions: {
25
+ getCurrentUser: import("@prismatic-io/spectral").ActionDefinition<{
26
+ connection: {
27
+ label: string;
28
+ type: "connection";
29
+ required: true;
30
+ comments: string;
31
+ };
32
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
33
+ data: unknown;
34
+ }>;
35
+ listChangeOrders: import("@prismatic-io/spectral").ActionDefinition<{
36
+ connection: {
37
+ label: string;
38
+ type: "connection";
39
+ required: true;
40
+ comments: string;
41
+ };
42
+ orderBy: {
43
+ label: string;
44
+ comments: string;
45
+ example: string;
46
+ placeholder: string;
47
+ type: "string";
48
+ required: false;
49
+ clean: (value: unknown) => any[];
50
+ model: {
51
+ label: string;
52
+ value: string;
53
+ }[];
54
+ };
55
+ first: {
56
+ label: string;
57
+ comments: string;
58
+ example: string;
59
+ placeholder: string;
60
+ type: "string";
61
+ required: false;
62
+ clean: (value: unknown) => number | undefined;
63
+ };
64
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
65
+ data: unknown;
66
+ }>;
67
+ createChangeOrder: import("@prismatic-io/spectral").ActionDefinition<{
68
+ connection: {
69
+ label: string;
70
+ type: "connection";
71
+ required: true;
72
+ comments: string;
73
+ };
74
+ name: {
75
+ label: string;
76
+ type: "string";
77
+ comments: string;
78
+ example: string;
79
+ placeholder: string;
80
+ required: true;
81
+ clean: (value: unknown) => string | undefined;
82
+ };
83
+ description: {
84
+ label: string;
85
+ type: "text";
86
+ required: false;
87
+ comments: string;
88
+ example: string;
89
+ placeholder: string;
90
+ clean: (value: unknown) => string | undefined;
91
+ };
92
+ type: {
93
+ label: string;
94
+ type: "string";
95
+ required: true;
96
+ comments: string;
97
+ clean: (value: unknown) => string | undefined;
98
+ default: string;
99
+ placeholder: string;
100
+ model: {
101
+ label: string;
102
+ value: string;
103
+ }[];
104
+ example: string;
105
+ };
106
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
107
+ data: unknown;
108
+ }>;
109
+ rawRequest: import("@prismatic-io/spectral").ActionDefinition<{
110
+ connection: {
111
+ label: string;
112
+ type: "connection";
113
+ required: true;
114
+ comments: string;
115
+ };
116
+ query: {
117
+ label: string;
118
+ type: "code";
119
+ required: true;
120
+ language: "graphql";
121
+ comments: string;
122
+ placeholder: string;
123
+ default: string;
124
+ example: string;
125
+ clean: (value: unknown) => string | undefined;
126
+ };
127
+ variables: {
128
+ label: string;
129
+ type: "string";
130
+ required: false;
131
+ collection: "keyvaluelist";
132
+ comments: string;
133
+ example: string;
134
+ placeholder: string;
135
+ clean: (value: unknown) => Record<string, unknown>;
136
+ };
137
+ variablesObject: {
138
+ label: string;
139
+ type: "code";
140
+ comments: string;
141
+ placeholder: string;
142
+ example: string;
143
+ language: "json";
144
+ required: false;
145
+ clean: (value: unknown) => object;
146
+ };
147
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
148
+ data: unknown;
149
+ }>;
150
+ getComponentById: import("@prismatic-io/spectral").ActionDefinition<{
151
+ connection: {
152
+ label: string;
153
+ type: "connection";
154
+ required: true;
155
+ comments: string;
156
+ };
157
+ componentId: {
158
+ label: string;
159
+ comments: string;
160
+ type: "string";
161
+ required: true;
162
+ example: string;
163
+ placeholder: string;
164
+ clean: (value: unknown) => string | undefined;
165
+ dataSource: string;
166
+ };
167
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
168
+ data: unknown;
169
+ }>;
170
+ listComponents: import("@prismatic-io/spectral").ActionDefinition<{
171
+ connection: {
172
+ label: string;
173
+ type: "connection";
174
+ required: true;
175
+ comments: string;
176
+ };
177
+ libraryType: {
178
+ label: string;
179
+ comments: string;
180
+ example: string;
181
+ placeholder: string;
182
+ type: "string";
183
+ required: true;
184
+ clean: (value: unknown) => string | undefined;
185
+ model: {
186
+ label: string;
187
+ value: string;
188
+ }[];
189
+ };
190
+ first: {
191
+ label: string;
192
+ comments: string;
193
+ example: string;
194
+ placeholder: string;
195
+ type: "string";
196
+ required: false;
197
+ clean: (value: unknown) => number | undefined;
198
+ };
199
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
200
+ data: ComponentNode[];
201
+ }>;
202
+ listCompanyUsers: import("@prismatic-io/spectral").ActionDefinition<{
203
+ connection: {
204
+ label: string;
205
+ type: "connection";
206
+ required: true;
207
+ comments: string;
208
+ };
209
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
210
+ data: unknown;
211
+ }>;
212
+ };
213
+ triggers: {
214
+ pollChangesTrigger: import("@prismatic-io/spectral").PollingTriggerDefinition<{
215
+ connection: {
216
+ label: string;
217
+ type: "connection";
218
+ required: true;
219
+ comments: string;
220
+ };
221
+ pollResourceType: {
222
+ label: string;
223
+ type: "string";
224
+ required: true;
225
+ model: {
226
+ label: string;
227
+ value: string;
228
+ }[];
229
+ comments: string;
230
+ example: string;
231
+ placeholder: string;
232
+ clean: (value: unknown, defaultValue?: string) => string;
233
+ };
234
+ lookBackDate: {
235
+ label: string;
236
+ placeholder: string;
237
+ type: "string";
238
+ required: false;
239
+ comments: string;
240
+ example: string;
241
+ clean: (value: unknown) => string;
242
+ };
243
+ showNewRecords: {
244
+ label: string;
245
+ type: "boolean";
246
+ required: false;
247
+ default: string;
248
+ comments: string;
249
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
250
+ };
251
+ showUpdatedRecords: {
252
+ label: string;
253
+ type: "boolean";
254
+ required: false;
255
+ default: string;
256
+ comments: string;
257
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
258
+ };
259
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, import("@prismatic-io/spectral").TriggerPayload<Record<string, unknown>>, boolean, {
260
+ payload: import("@prismatic-io/spectral").TriggerPayload;
261
+ polledNoChanges: boolean;
262
+ }, import("@prismatic-io/spectral").Inputs>;
263
+ };
264
+ connections: import("@prismatic-io/spectral").KeyedConnection<{
265
+ key: "duroApiKey";
266
+ display: {
267
+ label: string;
268
+ description: string;
269
+ };
270
+ inputs: {
271
+ username: {
272
+ label: string;
273
+ placeholder: string;
274
+ example: string;
275
+ comments: string;
276
+ type: "password";
277
+ required: true;
278
+ };
279
+ duroEnvironment: {
280
+ label: string;
281
+ placeholder: string;
282
+ comments: string;
283
+ type: "string";
284
+ required: true;
285
+ model: {
286
+ label: string;
287
+ value: string;
288
+ }[];
289
+ example: string;
290
+ };
291
+ customDuroEnvironment: {
292
+ label: string;
293
+ type: "string";
294
+ required: false;
295
+ placeholder: string;
296
+ comments: string;
297
+ example: string;
298
+ };
299
+ };
300
+ }, "duroApiKey">[];
301
+ dataSources: {
302
+ selectComponent: import("@prismatic-io/spectral").DataSourceDefinition<{
303
+ connection: {
304
+ label: string;
305
+ type: "connection";
306
+ required: true;
307
+ comments: string;
308
+ };
309
+ libraryType: {
310
+ label: string;
311
+ comments: string;
312
+ example: string;
313
+ placeholder: string;
314
+ type: "string";
315
+ required: true;
316
+ clean: (value: unknown) => string | undefined;
317
+ model: {
318
+ label: string;
319
+ value: string;
320
+ }[];
321
+ };
322
+ first: {
323
+ label: string;
324
+ comments: string;
325
+ example: string;
326
+ placeholder: string;
327
+ type: "string";
328
+ required: false;
329
+ clean: (value: unknown) => number | undefined;
330
+ };
331
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, "picklist">;
332
+ };
333
+ }>;
334
+ export = _default;
package/package.json CHANGED
@@ -1,6 +1,53 @@
1
1
  {
2
2
  "name": "@prismatic-io/components-duro-plm",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.0.1",
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 products, components, and change orders in Duro PLM.",
13
+ "license": "Apache-2.0",
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/prismatic-io/components.git",
17
+ "directory": "components/duro-plm"
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 lint --write .",
31
+ "format": "biome format --write .",
32
+ "build": "npm run format && npm run lint && tsdown",
33
+ "test": "vitest run",
34
+ "typecheck": "tsc --noEmit",
35
+ "prepare": "npm run build",
36
+ "publish:platform": "npm run build && prism components:publish"
37
+ },
38
+ "peerDependencies": {
39
+ "@prismatic-io/spectral": "^10.38.5"
40
+ },
41
+ "dependencies": {
42
+ "graphql": "^16.7.1",
43
+ "graphql-request": "^6.1.0"
44
+ },
45
+ "devDependencies": {
46
+ "@biomejs/biome": "2.5.1",
47
+ "@types/node": "^26.6.5",
48
+ "tsdown": "0.22.3",
49
+ "typescript": "6.0.3",
50
+ "vitest": "4.1.9",
51
+ "@prismatic-io/spectral": "^10.38.5"
52
+ }
53
+ }