@transai/connector-runner-ridder-iq 0.11.4 → 0.11.6
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.
- package/CHANGELOG.md +25 -0
- package/DOCUMENTATION.md +30 -0
- package/index.cjs +21 -21
- package/index.cjs.map +4 -4
- package/integrations/connector-runner-ridder-iq/src/actions/create-with-defaults-action.d.ts +35 -0
- package/integrations/connector-runner-ridder-iq/src/actions/crm/relations/create-relation.d.ts +6 -0
- package/integrations/connector-runner-ridder-iq/src/actions/itemmanagement/index.d.ts +1 -0
- package/integrations/connector-runner-ridder-iq/src/actions/itemmanagement/items/create-item.d.ts +170 -0
- package/integrations/connector-runner-ridder-iq/src/actions/itemmanagement/items/index.d.ts +1 -0
- package/integrations/connector-runner-ridder-iq/src/actions/itemmanagement/items/schemas.d.ts +164 -0
- package/integrations/connector-runner-ridder-iq/src/actions/itemmanagement/itemsalesprices/create-itemsalesprice.d.ts +68 -0
- package/integrations/connector-runner-ridder-iq/src/actions/itemmanagement/itemsalesprices/get-itemsalesprices.d.ts +6 -0
- package/integrations/connector-runner-ridder-iq/src/actions/itemmanagement/itemsalesprices/index.d.ts +3 -0
- package/integrations/connector-runner-ridder-iq/src/actions/itemmanagement/itemsalesprices/schemas.d.ts +62 -0
- package/integrations/connector-runner-ridder-iq/src/actions/itemmanagement/itemsalesprices/types.d.ts +43 -0
- package/integrations/connector-runner-ridder-iq/src/actions/itemmanagement/lookups/get-price-names.d.ts +6 -0
- package/integrations/connector-runner-ridder-iq/src/actions/itemmanagement/lookups/index.d.ts +1 -0
- package/integrations/connector-runner-ridder-iq/src/actions/itemmanagement/lookups/types.d.ts +7 -0
- package/integrations/connector-runner-ridder-iq/src/actions/link-document-action.d.ts +29 -0
- package/integrations/connector-runner-ridder-iq/src/actions/production/orders/link-document.d.ts +3 -21
- package/integrations/connector-runner-ridder-iq/src/actions/sales/salesoffers/index.d.ts +1 -0
- package/integrations/connector-runner-ridder-iq/src/actions/sales/salesoffers/link-document.d.ts +5 -0
- package/package.json +1 -1
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { HttpClientSDKInterface } from '@transai/connector-runtime-sdk';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { RidderIQActionInterface, RidderIQActionResult } from './action.interface';
|
|
4
|
+
export declare const defaultableReference: z.ZodPipe<z.ZodUnion<readonly [z.ZodInt, z.ZodObject<{
|
|
5
|
+
id: z.ZodInt;
|
|
6
|
+
}, z.core.$loose>]>, z.ZodTransform<{
|
|
7
|
+
id: number;
|
|
8
|
+
}, number | {
|
|
9
|
+
[x: string]: unknown;
|
|
10
|
+
id: number;
|
|
11
|
+
}>>;
|
|
12
|
+
export declare const defaultableChoice: z.ZodPipe<z.ZodUnion<readonly [z.ZodInt, z.ZodObject<{
|
|
13
|
+
choicenumber: z.ZodInt;
|
|
14
|
+
}, z.core.$loose>]>, z.ZodTransform<{
|
|
15
|
+
choicenumber: number;
|
|
16
|
+
}, number | {
|
|
17
|
+
[x: string]: unknown;
|
|
18
|
+
choicenumber: number;
|
|
19
|
+
}>>;
|
|
20
|
+
type CreateInputs<InputSchema extends z.ZodObject> = Partial<z.input<InputSchema>>;
|
|
21
|
+
/**
|
|
22
|
+
* Create action for records with many required fields: it fetches the
|
|
23
|
+
* tenant's getdefaults record, overlays the inputs and POSTs only the fields
|
|
24
|
+
* the input schema declares. Subclasses name the action, endpoint and schema.
|
|
25
|
+
*/
|
|
26
|
+
export declare abstract class CreateWithDefaultsAction<RecordType, InputSchema extends z.ZodObject> implements RidderIQActionInterface<RecordType, CreateInputs<InputSchema>> {
|
|
27
|
+
#private;
|
|
28
|
+
abstract readonly identifier: string;
|
|
29
|
+
abstract readonly endpoint: string;
|
|
30
|
+
abstract readonly inputSchema: InputSchema;
|
|
31
|
+
readonly identifierField = "id";
|
|
32
|
+
constructor(httpClient: HttpClientSDKInterface);
|
|
33
|
+
run(inputs: CreateInputs<InputSchema>): Promise<RidderIQActionResult<RecordType>>;
|
|
34
|
+
}
|
|
35
|
+
export {};
|
package/integrations/connector-runner-ridder-iq/src/actions/crm/relations/create-relation.d.ts
CHANGED
|
@@ -10,6 +10,12 @@ declare const schema: z.ZodObject<{
|
|
|
10
10
|
website: z.ZodOptional<z.ZodString>;
|
|
11
11
|
searchcode: z.ZodOptional<z.ZodString>;
|
|
12
12
|
vatnumber: z.ZodOptional<z.ZodString>;
|
|
13
|
+
cocnumber: z.ZodOptional<z.ZodString>;
|
|
14
|
+
phone1: z.ZodOptional<z.ZodString>;
|
|
15
|
+
phone2: z.ZodOptional<z.ZodString>;
|
|
16
|
+
fax: z.ZodOptional<z.ZodString>;
|
|
17
|
+
visitingaddress: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
postaladdress: z.ZodOptional<z.ZodNumber>;
|
|
13
19
|
mailing: z.ZodOptional<z.ZodBoolean>;
|
|
14
20
|
blocked: z.ZodOptional<z.ZodBoolean>;
|
|
15
21
|
showwarning: z.ZodOptional<z.ZodBoolean>;
|
package/integrations/connector-runner-ridder-iq/src/actions/itemmanagement/items/create-item.d.ts
ADDED
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { CreateWithDefaultsAction } from '../../create-with-defaults-action';
|
|
2
|
+
import { createInputSchema } from './schemas';
|
|
3
|
+
import { ItemManagementItem } from './types';
|
|
4
|
+
export declare class CreateItemManagementItem extends CreateWithDefaultsAction<ItemManagementItem, typeof createInputSchema> {
|
|
5
|
+
readonly identifier = "itemmanagement-items-create";
|
|
6
|
+
readonly endpoint = "/v2/itemmanagement/items";
|
|
7
|
+
readonly inputSchema: import("zod").ZodObject<{
|
|
8
|
+
code: import("zod").ZodString;
|
|
9
|
+
description: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
10
|
+
drawingnumber: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
11
|
+
salesdescription: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
12
|
+
salesdrawingnumber: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
13
|
+
salesitemcode: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
14
|
+
externalkey: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
15
|
+
itemgroup: import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodInt, import("zod").ZodObject<{
|
|
16
|
+
id: import("zod").ZodInt;
|
|
17
|
+
}, import("zod/v4/core").$loose>]>, import("zod").ZodTransform<{
|
|
18
|
+
id: number;
|
|
19
|
+
}, number | {
|
|
20
|
+
[x: string]: unknown;
|
|
21
|
+
id: number;
|
|
22
|
+
}>>;
|
|
23
|
+
itemunit: import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodInt, import("zod").ZodObject<{
|
|
24
|
+
id: import("zod").ZodInt;
|
|
25
|
+
}, import("zod/v4/core").$loose>]>, import("zod").ZodTransform<{
|
|
26
|
+
id: number;
|
|
27
|
+
}, number | {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
id: number;
|
|
30
|
+
}>>;
|
|
31
|
+
itempurchasepricetemplategroup: import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodInt, import("zod").ZodObject<{
|
|
32
|
+
id: import("zod").ZodInt;
|
|
33
|
+
}, import("zod/v4/core").$loose>]>, import("zod").ZodTransform<{
|
|
34
|
+
id: number;
|
|
35
|
+
}, number | {
|
|
36
|
+
[x: string]: unknown;
|
|
37
|
+
id: number;
|
|
38
|
+
}>>;
|
|
39
|
+
itemsalespricetemplategroup: import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodInt, import("zod").ZodObject<{
|
|
40
|
+
id: import("zod").ZodInt;
|
|
41
|
+
}, import("zod/v4/core").$loose>]>, import("zod").ZodTransform<{
|
|
42
|
+
id: number;
|
|
43
|
+
}, number | {
|
|
44
|
+
[x: string]: unknown;
|
|
45
|
+
id: number;
|
|
46
|
+
}>>;
|
|
47
|
+
brand: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodInt, import("zod").ZodObject<{
|
|
48
|
+
id: import("zod").ZodInt;
|
|
49
|
+
}, import("zod/v4/core").$loose>]>, import("zod").ZodTransform<{
|
|
50
|
+
id: number;
|
|
51
|
+
}, number | {
|
|
52
|
+
[x: string]: unknown;
|
|
53
|
+
id: number;
|
|
54
|
+
}>>>>;
|
|
55
|
+
material: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodInt, import("zod").ZodObject<{
|
|
56
|
+
id: import("zod").ZodInt;
|
|
57
|
+
}, import("zod/v4/core").$loose>]>, import("zod").ZodTransform<{
|
|
58
|
+
id: number;
|
|
59
|
+
}, number | {
|
|
60
|
+
[x: string]: unknown;
|
|
61
|
+
id: number;
|
|
62
|
+
}>>>>;
|
|
63
|
+
statisticcode: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodInt, import("zod").ZodObject<{
|
|
64
|
+
id: import("zod").ZodInt;
|
|
65
|
+
}, import("zod/v4/core").$loose>]>, import("zod").ZodTransform<{
|
|
66
|
+
id: number;
|
|
67
|
+
}, number | {
|
|
68
|
+
[x: string]: unknown;
|
|
69
|
+
id: number;
|
|
70
|
+
}>>>>;
|
|
71
|
+
acquisitionmethod: import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodInt, import("zod").ZodObject<{
|
|
72
|
+
choicenumber: import("zod").ZodInt;
|
|
73
|
+
}, import("zod/v4/core").$loose>]>, import("zod").ZodTransform<{
|
|
74
|
+
choicenumber: number;
|
|
75
|
+
}, number | {
|
|
76
|
+
[x: string]: unknown;
|
|
77
|
+
choicenumber: number;
|
|
78
|
+
}>>;
|
|
79
|
+
defaultsawingcode: import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodInt, import("zod").ZodObject<{
|
|
80
|
+
choicenumber: import("zod").ZodInt;
|
|
81
|
+
}, import("zod/v4/core").$loose>]>, import("zod").ZodTransform<{
|
|
82
|
+
choicenumber: number;
|
|
83
|
+
}, number | {
|
|
84
|
+
[x: string]: unknown;
|
|
85
|
+
choicenumber: number;
|
|
86
|
+
}>>;
|
|
87
|
+
inventorykind: import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodInt, import("zod").ZodObject<{
|
|
88
|
+
choicenumber: import("zod").ZodInt;
|
|
89
|
+
}, import("zod/v4/core").$loose>]>, import("zod").ZodTransform<{
|
|
90
|
+
choicenumber: number;
|
|
91
|
+
}, number | {
|
|
92
|
+
[x: string]: unknown;
|
|
93
|
+
choicenumber: number;
|
|
94
|
+
}>>;
|
|
95
|
+
priceupdateonpurchase: import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodInt, import("zod").ZodObject<{
|
|
96
|
+
choicenumber: import("zod").ZodInt;
|
|
97
|
+
}, import("zod/v4/core").$loose>]>, import("zod").ZodTransform<{
|
|
98
|
+
choicenumber: number;
|
|
99
|
+
}, number | {
|
|
100
|
+
[x: string]: unknown;
|
|
101
|
+
choicenumber: number;
|
|
102
|
+
}>>;
|
|
103
|
+
priceupdateonpurchaseinvoice: import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodInt, import("zod").ZodObject<{
|
|
104
|
+
choicenumber: import("zod").ZodInt;
|
|
105
|
+
}, import("zod/v4/core").$loose>]>, import("zod").ZodTransform<{
|
|
106
|
+
choicenumber: number;
|
|
107
|
+
}, number | {
|
|
108
|
+
[x: string]: unknown;
|
|
109
|
+
choicenumber: number;
|
|
110
|
+
}>>;
|
|
111
|
+
registrationpath: import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodInt, import("zod").ZodObject<{
|
|
112
|
+
choicenumber: import("zod").ZodInt;
|
|
113
|
+
}, import("zod/v4/core").$loose>]>, import("zod").ZodTransform<{
|
|
114
|
+
choicenumber: number;
|
|
115
|
+
}, number | {
|
|
116
|
+
[x: string]: unknown;
|
|
117
|
+
choicenumber: number;
|
|
118
|
+
}>>;
|
|
119
|
+
service: import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodInt, import("zod").ZodObject<{
|
|
120
|
+
choicenumber: import("zod").ZodInt;
|
|
121
|
+
}, import("zod/v4/core").$loose>]>, import("zod").ZodTransform<{
|
|
122
|
+
choicenumber: number;
|
|
123
|
+
}, number | {
|
|
124
|
+
[x: string]: unknown;
|
|
125
|
+
choicenumber: number;
|
|
126
|
+
}>>;
|
|
127
|
+
stocklinktype: import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodInt, import("zod").ZodObject<{
|
|
128
|
+
choicenumber: import("zod").ZodInt;
|
|
129
|
+
}, import("zod/v4/core").$loose>]>, import("zod").ZodTransform<{
|
|
130
|
+
choicenumber: number;
|
|
131
|
+
}, number | {
|
|
132
|
+
[x: string]: unknown;
|
|
133
|
+
choicenumber: number;
|
|
134
|
+
}>>;
|
|
135
|
+
surfacetreatment: import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodInt, import("zod").ZodObject<{
|
|
136
|
+
choicenumber: import("zod").ZodInt;
|
|
137
|
+
}, import("zod/v4/core").$loose>]>, import("zod").ZodTransform<{
|
|
138
|
+
choicenumber: number;
|
|
139
|
+
}, number | {
|
|
140
|
+
[x: string]: unknown;
|
|
141
|
+
choicenumber: number;
|
|
142
|
+
}>>;
|
|
143
|
+
incominggoodsinspection: import("zod").ZodBoolean;
|
|
144
|
+
locationwithreceipt: import("zod").ZodBoolean;
|
|
145
|
+
showwarning_eci: import("zod").ZodBoolean;
|
|
146
|
+
sparepart: import("zod").ZodBoolean;
|
|
147
|
+
unmarketable: import("zod").ZodBoolean;
|
|
148
|
+
appliancepriority: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodInt>>;
|
|
149
|
+
barcode2: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
150
|
+
eancode: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
151
|
+
fixedscalepricenumber: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodInt>>;
|
|
152
|
+
industrystandard: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
153
|
+
keywords: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
154
|
+
manufacturernumber: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
155
|
+
paintarea: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
156
|
+
pickinstruction: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
157
|
+
salespricerounding: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
158
|
+
standardcost: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
159
|
+
standardcostmarkup: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
160
|
+
surfacearea: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
161
|
+
textureangle: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
162
|
+
thickness: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
163
|
+
tradelength: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
164
|
+
tradewidth: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
165
|
+
typenumber: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
166
|
+
volume: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
167
|
+
weight: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
168
|
+
additionalproperties: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
|
|
169
|
+
}, import("zod/v4/core").$strip>;
|
|
170
|
+
}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const createInputSchema: z.ZodObject<{
|
|
3
|
+
code: z.ZodString;
|
|
4
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
|
+
drawingnumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
|
+
salesdescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
salesdrawingnumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
salesitemcode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
externalkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
itemgroup: z.ZodPipe<z.ZodUnion<readonly [z.ZodInt, z.ZodObject<{
|
|
11
|
+
id: z.ZodInt;
|
|
12
|
+
}, z.core.$loose>]>, z.ZodTransform<{
|
|
13
|
+
id: number;
|
|
14
|
+
}, number | {
|
|
15
|
+
[x: string]: unknown;
|
|
16
|
+
id: number;
|
|
17
|
+
}>>;
|
|
18
|
+
itemunit: z.ZodPipe<z.ZodUnion<readonly [z.ZodInt, z.ZodObject<{
|
|
19
|
+
id: z.ZodInt;
|
|
20
|
+
}, z.core.$loose>]>, z.ZodTransform<{
|
|
21
|
+
id: number;
|
|
22
|
+
}, number | {
|
|
23
|
+
[x: string]: unknown;
|
|
24
|
+
id: number;
|
|
25
|
+
}>>;
|
|
26
|
+
itempurchasepricetemplategroup: z.ZodPipe<z.ZodUnion<readonly [z.ZodInt, z.ZodObject<{
|
|
27
|
+
id: z.ZodInt;
|
|
28
|
+
}, z.core.$loose>]>, z.ZodTransform<{
|
|
29
|
+
id: number;
|
|
30
|
+
}, number | {
|
|
31
|
+
[x: string]: unknown;
|
|
32
|
+
id: number;
|
|
33
|
+
}>>;
|
|
34
|
+
itemsalespricetemplategroup: z.ZodPipe<z.ZodUnion<readonly [z.ZodInt, z.ZodObject<{
|
|
35
|
+
id: z.ZodInt;
|
|
36
|
+
}, z.core.$loose>]>, z.ZodTransform<{
|
|
37
|
+
id: number;
|
|
38
|
+
}, number | {
|
|
39
|
+
[x: string]: unknown;
|
|
40
|
+
id: number;
|
|
41
|
+
}>>;
|
|
42
|
+
brand: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodInt, z.ZodObject<{
|
|
43
|
+
id: z.ZodInt;
|
|
44
|
+
}, z.core.$loose>]>, z.ZodTransform<{
|
|
45
|
+
id: number;
|
|
46
|
+
}, number | {
|
|
47
|
+
[x: string]: unknown;
|
|
48
|
+
id: number;
|
|
49
|
+
}>>>>;
|
|
50
|
+
material: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodInt, z.ZodObject<{
|
|
51
|
+
id: z.ZodInt;
|
|
52
|
+
}, z.core.$loose>]>, z.ZodTransform<{
|
|
53
|
+
id: number;
|
|
54
|
+
}, number | {
|
|
55
|
+
[x: string]: unknown;
|
|
56
|
+
id: number;
|
|
57
|
+
}>>>>;
|
|
58
|
+
statisticcode: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodInt, z.ZodObject<{
|
|
59
|
+
id: z.ZodInt;
|
|
60
|
+
}, z.core.$loose>]>, z.ZodTransform<{
|
|
61
|
+
id: number;
|
|
62
|
+
}, number | {
|
|
63
|
+
[x: string]: unknown;
|
|
64
|
+
id: number;
|
|
65
|
+
}>>>>;
|
|
66
|
+
acquisitionmethod: z.ZodPipe<z.ZodUnion<readonly [z.ZodInt, z.ZodObject<{
|
|
67
|
+
choicenumber: z.ZodInt;
|
|
68
|
+
}, z.core.$loose>]>, z.ZodTransform<{
|
|
69
|
+
choicenumber: number;
|
|
70
|
+
}, number | {
|
|
71
|
+
[x: string]: unknown;
|
|
72
|
+
choicenumber: number;
|
|
73
|
+
}>>;
|
|
74
|
+
defaultsawingcode: z.ZodPipe<z.ZodUnion<readonly [z.ZodInt, z.ZodObject<{
|
|
75
|
+
choicenumber: z.ZodInt;
|
|
76
|
+
}, z.core.$loose>]>, z.ZodTransform<{
|
|
77
|
+
choicenumber: number;
|
|
78
|
+
}, number | {
|
|
79
|
+
[x: string]: unknown;
|
|
80
|
+
choicenumber: number;
|
|
81
|
+
}>>;
|
|
82
|
+
inventorykind: z.ZodPipe<z.ZodUnion<readonly [z.ZodInt, z.ZodObject<{
|
|
83
|
+
choicenumber: z.ZodInt;
|
|
84
|
+
}, z.core.$loose>]>, z.ZodTransform<{
|
|
85
|
+
choicenumber: number;
|
|
86
|
+
}, number | {
|
|
87
|
+
[x: string]: unknown;
|
|
88
|
+
choicenumber: number;
|
|
89
|
+
}>>;
|
|
90
|
+
priceupdateonpurchase: z.ZodPipe<z.ZodUnion<readonly [z.ZodInt, z.ZodObject<{
|
|
91
|
+
choicenumber: z.ZodInt;
|
|
92
|
+
}, z.core.$loose>]>, z.ZodTransform<{
|
|
93
|
+
choicenumber: number;
|
|
94
|
+
}, number | {
|
|
95
|
+
[x: string]: unknown;
|
|
96
|
+
choicenumber: number;
|
|
97
|
+
}>>;
|
|
98
|
+
priceupdateonpurchaseinvoice: z.ZodPipe<z.ZodUnion<readonly [z.ZodInt, z.ZodObject<{
|
|
99
|
+
choicenumber: z.ZodInt;
|
|
100
|
+
}, z.core.$loose>]>, z.ZodTransform<{
|
|
101
|
+
choicenumber: number;
|
|
102
|
+
}, number | {
|
|
103
|
+
[x: string]: unknown;
|
|
104
|
+
choicenumber: number;
|
|
105
|
+
}>>;
|
|
106
|
+
registrationpath: z.ZodPipe<z.ZodUnion<readonly [z.ZodInt, z.ZodObject<{
|
|
107
|
+
choicenumber: z.ZodInt;
|
|
108
|
+
}, z.core.$loose>]>, z.ZodTransform<{
|
|
109
|
+
choicenumber: number;
|
|
110
|
+
}, number | {
|
|
111
|
+
[x: string]: unknown;
|
|
112
|
+
choicenumber: number;
|
|
113
|
+
}>>;
|
|
114
|
+
service: z.ZodPipe<z.ZodUnion<readonly [z.ZodInt, z.ZodObject<{
|
|
115
|
+
choicenumber: z.ZodInt;
|
|
116
|
+
}, z.core.$loose>]>, z.ZodTransform<{
|
|
117
|
+
choicenumber: number;
|
|
118
|
+
}, number | {
|
|
119
|
+
[x: string]: unknown;
|
|
120
|
+
choicenumber: number;
|
|
121
|
+
}>>;
|
|
122
|
+
stocklinktype: z.ZodPipe<z.ZodUnion<readonly [z.ZodInt, z.ZodObject<{
|
|
123
|
+
choicenumber: z.ZodInt;
|
|
124
|
+
}, z.core.$loose>]>, z.ZodTransform<{
|
|
125
|
+
choicenumber: number;
|
|
126
|
+
}, number | {
|
|
127
|
+
[x: string]: unknown;
|
|
128
|
+
choicenumber: number;
|
|
129
|
+
}>>;
|
|
130
|
+
surfacetreatment: z.ZodPipe<z.ZodUnion<readonly [z.ZodInt, z.ZodObject<{
|
|
131
|
+
choicenumber: z.ZodInt;
|
|
132
|
+
}, z.core.$loose>]>, z.ZodTransform<{
|
|
133
|
+
choicenumber: number;
|
|
134
|
+
}, number | {
|
|
135
|
+
[x: string]: unknown;
|
|
136
|
+
choicenumber: number;
|
|
137
|
+
}>>;
|
|
138
|
+
incominggoodsinspection: z.ZodBoolean;
|
|
139
|
+
locationwithreceipt: z.ZodBoolean;
|
|
140
|
+
showwarning_eci: z.ZodBoolean;
|
|
141
|
+
sparepart: z.ZodBoolean;
|
|
142
|
+
unmarketable: z.ZodBoolean;
|
|
143
|
+
appliancepriority: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
144
|
+
barcode2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
145
|
+
eancode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
146
|
+
fixedscalepricenumber: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
147
|
+
industrystandard: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
148
|
+
keywords: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
149
|
+
manufacturernumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
150
|
+
paintarea: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
151
|
+
pickinstruction: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
152
|
+
salespricerounding: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
153
|
+
standardcost: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
154
|
+
standardcostmarkup: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
155
|
+
surfacearea: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
156
|
+
textureangle: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
157
|
+
thickness: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
158
|
+
tradelength: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
159
|
+
tradewidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
160
|
+
typenumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
161
|
+
volume: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
162
|
+
weight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
163
|
+
additionalproperties: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
164
|
+
}, z.core.$strip>;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { CreateWithDefaultsAction } from '../../create-with-defaults-action';
|
|
2
|
+
import { inputSchema } from './schemas';
|
|
3
|
+
import { ItemSalesPrice } from './types';
|
|
4
|
+
export declare class CreateItemManagementItemSalesPrice extends CreateWithDefaultsAction<ItemSalesPrice, typeof inputSchema> {
|
|
5
|
+
readonly identifier = "itemmanagement-itemsalesprices-create";
|
|
6
|
+
readonly endpoint = "/v2/itemmanagement/itemsalesprices";
|
|
7
|
+
readonly inputSchema: import("zod").ZodObject<{
|
|
8
|
+
item: import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodInt, import("zod").ZodObject<{
|
|
9
|
+
id: import("zod").ZodInt;
|
|
10
|
+
}, import("zod/v4/core").$loose>]>, import("zod").ZodTransform<{
|
|
11
|
+
id: number;
|
|
12
|
+
}, number | {
|
|
13
|
+
[x: string]: unknown;
|
|
14
|
+
id: number;
|
|
15
|
+
}>>;
|
|
16
|
+
pricename: import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodInt, import("zod").ZodObject<{
|
|
17
|
+
id: import("zod").ZodInt;
|
|
18
|
+
}, import("zod/v4/core").$loose>]>, import("zod").ZodTransform<{
|
|
19
|
+
id: number;
|
|
20
|
+
}, number | {
|
|
21
|
+
[x: string]: unknown;
|
|
22
|
+
id: number;
|
|
23
|
+
}>>;
|
|
24
|
+
rangevalue: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
25
|
+
scalenumber: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodInt>>;
|
|
26
|
+
value: import("zod").ZodNumber;
|
|
27
|
+
valuetype: import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodInt, import("zod").ZodObject<{
|
|
28
|
+
choicenumber: import("zod").ZodInt;
|
|
29
|
+
}, import("zod/v4/core").$loose>]>, import("zod").ZodTransform<{
|
|
30
|
+
choicenumber: number;
|
|
31
|
+
}, number | {
|
|
32
|
+
[x: string]: unknown;
|
|
33
|
+
choicenumber: number;
|
|
34
|
+
}>>;
|
|
35
|
+
scalepriceactiontype: import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodInt, import("zod").ZodObject<{
|
|
36
|
+
choicenumber: import("zod").ZodInt;
|
|
37
|
+
}, import("zod/v4/core").$loose>]>, import("zod").ZodTransform<{
|
|
38
|
+
choicenumber: number;
|
|
39
|
+
}, number | {
|
|
40
|
+
[x: string]: unknown;
|
|
41
|
+
choicenumber: number;
|
|
42
|
+
}>>;
|
|
43
|
+
dependenton: import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodInt, import("zod").ZodObject<{
|
|
44
|
+
choicenumber: import("zod").ZodInt;
|
|
45
|
+
}, import("zod/v4/core").$loose>]>, import("zod").ZodTransform<{
|
|
46
|
+
choicenumber: number;
|
|
47
|
+
}, number | {
|
|
48
|
+
[x: string]: unknown;
|
|
49
|
+
choicenumber: number;
|
|
50
|
+
}>>;
|
|
51
|
+
sawingcode: import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodInt, import("zod").ZodObject<{
|
|
52
|
+
choicenumber: import("zod").ZodInt;
|
|
53
|
+
}, import("zod/v4/core").$loose>]>, import("zod").ZodTransform<{
|
|
54
|
+
choicenumber: number;
|
|
55
|
+
}, number | {
|
|
56
|
+
[x: string]: unknown;
|
|
57
|
+
choicenumber: number;
|
|
58
|
+
}>>;
|
|
59
|
+
markup: import("zod").ZodNumber;
|
|
60
|
+
newsalesprice: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
61
|
+
costprice: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
62
|
+
description: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
63
|
+
discountscope: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodUUID>>;
|
|
64
|
+
group: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodUUID>>;
|
|
65
|
+
externalkey: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
66
|
+
surchargelengthgreaterthan: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
67
|
+
}, import("zod/v4/core").$strip>;
|
|
68
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DatechangedRetriever } from '../../datechanged-retriever';
|
|
2
|
+
import { ItemSalesPrice } from './types';
|
|
3
|
+
export declare class GetItemManagementItemSalesPrices extends DatechangedRetriever<ItemSalesPrice> {
|
|
4
|
+
readonly identifier = "itemmanagement-itemsalesprices-get-all";
|
|
5
|
+
readonly endpoint = "/v2/itemmanagement/itemsalesprices";
|
|
6
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const inputSchema: z.ZodObject<{
|
|
3
|
+
item: z.ZodPipe<z.ZodUnion<readonly [z.ZodInt, z.ZodObject<{
|
|
4
|
+
id: z.ZodInt;
|
|
5
|
+
}, z.core.$loose>]>, z.ZodTransform<{
|
|
6
|
+
id: number;
|
|
7
|
+
}, number | {
|
|
8
|
+
[x: string]: unknown;
|
|
9
|
+
id: number;
|
|
10
|
+
}>>;
|
|
11
|
+
pricename: z.ZodPipe<z.ZodUnion<readonly [z.ZodInt, z.ZodObject<{
|
|
12
|
+
id: z.ZodInt;
|
|
13
|
+
}, z.core.$loose>]>, z.ZodTransform<{
|
|
14
|
+
id: number;
|
|
15
|
+
}, number | {
|
|
16
|
+
[x: string]: unknown;
|
|
17
|
+
id: number;
|
|
18
|
+
}>>;
|
|
19
|
+
rangevalue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
|
+
scalenumber: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
21
|
+
value: z.ZodNumber;
|
|
22
|
+
valuetype: z.ZodPipe<z.ZodUnion<readonly [z.ZodInt, z.ZodObject<{
|
|
23
|
+
choicenumber: z.ZodInt;
|
|
24
|
+
}, z.core.$loose>]>, z.ZodTransform<{
|
|
25
|
+
choicenumber: number;
|
|
26
|
+
}, number | {
|
|
27
|
+
[x: string]: unknown;
|
|
28
|
+
choicenumber: number;
|
|
29
|
+
}>>;
|
|
30
|
+
scalepriceactiontype: z.ZodPipe<z.ZodUnion<readonly [z.ZodInt, z.ZodObject<{
|
|
31
|
+
choicenumber: z.ZodInt;
|
|
32
|
+
}, z.core.$loose>]>, z.ZodTransform<{
|
|
33
|
+
choicenumber: number;
|
|
34
|
+
}, number | {
|
|
35
|
+
[x: string]: unknown;
|
|
36
|
+
choicenumber: number;
|
|
37
|
+
}>>;
|
|
38
|
+
dependenton: z.ZodPipe<z.ZodUnion<readonly [z.ZodInt, z.ZodObject<{
|
|
39
|
+
choicenumber: z.ZodInt;
|
|
40
|
+
}, z.core.$loose>]>, z.ZodTransform<{
|
|
41
|
+
choicenumber: number;
|
|
42
|
+
}, number | {
|
|
43
|
+
[x: string]: unknown;
|
|
44
|
+
choicenumber: number;
|
|
45
|
+
}>>;
|
|
46
|
+
sawingcode: z.ZodPipe<z.ZodUnion<readonly [z.ZodInt, z.ZodObject<{
|
|
47
|
+
choicenumber: z.ZodInt;
|
|
48
|
+
}, z.core.$loose>]>, z.ZodTransform<{
|
|
49
|
+
choicenumber: number;
|
|
50
|
+
}, number | {
|
|
51
|
+
[x: string]: unknown;
|
|
52
|
+
choicenumber: number;
|
|
53
|
+
}>>;
|
|
54
|
+
markup: z.ZodNumber;
|
|
55
|
+
newsalesprice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
56
|
+
costprice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
57
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
|
+
discountscope: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
59
|
+
group: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
60
|
+
externalkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
61
|
+
surchargelengthgreaterthan: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
62
|
+
}, z.core.$strip>;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
type Reference = {
|
|
2
|
+
id: number;
|
|
3
|
+
recordtag?: string | null;
|
|
4
|
+
};
|
|
5
|
+
type Choice = {
|
|
6
|
+
choicenumber?: number;
|
|
7
|
+
choicetext?: string | null;
|
|
8
|
+
};
|
|
9
|
+
export type ItemSalesPrice = {
|
|
10
|
+
id: number;
|
|
11
|
+
costprice?: number | null;
|
|
12
|
+
creator?: string | null;
|
|
13
|
+
datechanged?: string | null;
|
|
14
|
+
datecreated?: string | null;
|
|
15
|
+
dependenton?: Choice | null;
|
|
16
|
+
description?: string | null;
|
|
17
|
+
discountscope?: string | null;
|
|
18
|
+
externalkey?: string | null;
|
|
19
|
+
group?: string | null;
|
|
20
|
+
item?: (Reference & {
|
|
21
|
+
code?: string | null;
|
|
22
|
+
description?: string | null;
|
|
23
|
+
}) | null;
|
|
24
|
+
markup?: number | null;
|
|
25
|
+
newsalesprice?: number | null;
|
|
26
|
+
pricename?: (Reference & {
|
|
27
|
+
name?: string | null;
|
|
28
|
+
}) | null;
|
|
29
|
+
rangevalue?: number | null;
|
|
30
|
+
recalculatedcostprice?: number | null;
|
|
31
|
+
recalculatedcostpricedate?: string | null;
|
|
32
|
+
recordlink?: string | null;
|
|
33
|
+
sawingcode?: Choice | null;
|
|
34
|
+
scalenumber?: number | null;
|
|
35
|
+
scalepriceactiontype?: Choice | null;
|
|
36
|
+
surchargelengthgreaterthan?: number | null;
|
|
37
|
+
userchanged?: string | null;
|
|
38
|
+
value?: number | null;
|
|
39
|
+
valuetype?: Choice | null;
|
|
40
|
+
workflowstate?: unknown | null;
|
|
41
|
+
additionalproperties?: Record<string, unknown> | null;
|
|
42
|
+
};
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { GetItemManagementLookupAction } from './get-lookup-action';
|
|
2
|
+
import { ItemManagementPriceName } from './types';
|
|
3
|
+
export declare class GetItemManagementPriceNames extends GetItemManagementLookupAction<ItemManagementPriceName> {
|
|
4
|
+
readonly identifier = "itemmanagement-pricenames-get-all";
|
|
5
|
+
readonly path = "/v2/itemmanagement/pricenames";
|
|
6
|
+
}
|
package/integrations/connector-runner-ridder-iq/src/actions/itemmanagement/lookups/types.d.ts
CHANGED
|
@@ -82,4 +82,11 @@ export type ItemManagementMaterialType = ItemManagementLookupBase & {
|
|
|
82
82
|
itemgroup?: ItemManagementCodeDescriptionReference | null;
|
|
83
83
|
itemunit?: ItemManagementCodeDescriptionReference | null;
|
|
84
84
|
};
|
|
85
|
+
export type ItemManagementPriceName = ItemManagementLookupBase & {
|
|
86
|
+
nametranslations?: Array<unknown> | null;
|
|
87
|
+
pricetype?: {
|
|
88
|
+
choicenumber?: number;
|
|
89
|
+
choicetext?: string | null;
|
|
90
|
+
} | null;
|
|
91
|
+
};
|
|
85
92
|
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { HttpClientSDKInterface } from '@transai/connector-runtime-sdk';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { RidderIQActionInterface, RidderIQActionResult } from './action.interface';
|
|
4
|
+
declare const schema: z.ZodObject<{
|
|
5
|
+
id: z.ZodNumber;
|
|
6
|
+
documents: z.ZodArray<z.ZodObject<{
|
|
7
|
+
location: z.ZodString;
|
|
8
|
+
name: z.ZodOptional<z.ZodString>;
|
|
9
|
+
description: z.ZodOptional<z.ZodString>;
|
|
10
|
+
}, z.core.$strip>>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
type ParamsType = z.infer<typeof schema>;
|
|
13
|
+
type CreatedDocument = Record<string, unknown> & {
|
|
14
|
+
id: number;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Links files that already live on a share the RidderIQ clients can reach, so
|
|
18
|
+
* RidderIQ keeps a reference to the file instead of storing a copy in its
|
|
19
|
+
* database. Subclasses only name the action and the record endpoint.
|
|
20
|
+
*/
|
|
21
|
+
export declare abstract class LinkDocumentAction implements RidderIQActionInterface<CreatedDocument, ParamsType> {
|
|
22
|
+
#private;
|
|
23
|
+
abstract readonly identifier: string;
|
|
24
|
+
abstract readonly endpoint: string;
|
|
25
|
+
readonly identifierField = "id";
|
|
26
|
+
constructor(httpClient: HttpClientSDKInterface);
|
|
27
|
+
run(inputs: ParamsType): Promise<RidderIQActionResult<CreatedDocument>>;
|
|
28
|
+
}
|
|
29
|
+
export {};
|