@viu/emporix-sdk 2.8.0 → 2.9.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.
- package/CHANGELOG.md +64 -0
- package/dist/{chunk-5JHTZBOC.js → chunk-B4UOYJKW.js} +12 -2
- package/dist/chunk-B4UOYJKW.js.map +1 -0
- package/dist/{chunk-SCI7D74B.js → chunk-BK25FDTH.js} +17 -5
- package/dist/chunk-BK25FDTH.js.map +1 -0
- package/dist/{chunk-B56JZNI7.js → chunk-HAEVK6IS.js} +6 -3
- package/dist/chunk-HAEVK6IS.js.map +1 -0
- package/dist/{chunk-6UNFMCHZ.js → chunk-KVBCTXVH.js} +2 -2
- package/dist/chunk-KVBCTXVH.js.map +1 -0
- package/dist/{chunk-NM7VDXBR.js → chunk-LGLFJL3S.js} +6 -3
- package/dist/chunk-LGLFJL3S.js.map +1 -0
- package/dist/chunk-LGOC5XOI.js +40 -0
- package/dist/chunk-LGOC5XOI.js.map +1 -0
- package/dist/{chunk-RXVVFNYN.js → chunk-MM6JF3Z7.js} +6 -3
- package/dist/chunk-MM6JF3Z7.js.map +1 -0
- package/dist/companies.cjs +4 -1
- package/dist/companies.cjs.map +1 -1
- package/dist/companies.d.cts +7 -4
- package/dist/companies.d.ts +7 -4
- package/dist/companies.js +1 -1
- package/dist/contacts.cjs +4 -1
- package/dist/contacts.cjs.map +1 -1
- package/dist/contacts.d.cts +6 -4
- package/dist/contacts.d.ts +6 -4
- package/dist/contacts.js +1 -1
- package/dist/customer-groups.cjs +17 -0
- package/dist/customer-groups.cjs.map +1 -1
- package/dist/customer-groups.d.cts +94 -21
- package/dist/customer-groups.d.ts +94 -21
- package/dist/customer-groups.js +1 -1
- package/dist/index.cjs +63 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -5
- package/dist/index.d.ts +13 -5
- package/dist/index.js +23 -16
- package/dist/index.js.map +1 -1
- package/dist/locations.cjs +4 -1
- package/dist/locations.cjs.map +1 -1
- package/dist/locations.d.cts +7 -4
- package/dist/locations.d.ts +7 -4
- package/dist/locations.js +1 -1
- package/dist/orders.cjs.map +1 -1
- package/dist/orders.d.cts +1726 -80
- package/dist/orders.d.ts +1726 -80
- package/dist/orders.js +1 -1
- package/dist/price.cjs +15 -3
- package/dist/price.cjs.map +1 -1
- package/dist/price.d.cts +23 -4
- package/dist/price.d.ts +23 -4
- package/dist/price.js +1 -1
- package/dist/product.cjs +10 -0
- package/dist/product.cjs.map +1 -1
- package/dist/product.d.cts +10 -0
- package/dist/product.d.ts +10 -0
- package/dist/product.js +1 -1
- package/dist/types.gen-C_wOXYZB.d.cts +455 -0
- package/dist/types.gen-C_wOXYZB.d.ts +455 -0
- package/package.json +1 -1
- package/dist/chunk-5JHTZBOC.js.map +0 -1
- package/dist/chunk-6UNFMCHZ.js.map +0 -1
- package/dist/chunk-B56JZNI7.js.map +0 -1
- package/dist/chunk-NM7VDXBR.js.map +0 -1
- package/dist/chunk-RXVVFNYN.js.map +0 -1
- package/dist/chunk-SCI7D74B.js.map +0 -1
- package/dist/chunk-SKX7KCMH.js +0 -23
- package/dist/chunk-SKX7KCMH.js.map +0 -1
- package/dist/types.gen-D1QuqPLs.d.cts +0 -166
- package/dist/types.gen-D1QuqPLs.d.ts +0 -166
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Hand-written mirror of the Customer Management Service OpenAPI 0.0.1
|
|
3
|
-
* schemas. The shapes below are taken directly from the documented API
|
|
4
|
-
* (Legal Entities, Contact Assignments, Locations endpoints).
|
|
5
|
-
*
|
|
6
|
-
* **Not generated.** When the OpenAPI input file lands in the repo, this
|
|
7
|
-
* file is replaced by codegen output. Keep the exported names stable so the
|
|
8
|
-
* façade re-exports don't churn.
|
|
9
|
-
*/
|
|
10
|
-
type LegalEntityType = "COMPANY" | "SUBSIDIARY";
|
|
11
|
-
interface AccountLimit {
|
|
12
|
-
currency?: string;
|
|
13
|
-
value?: number;
|
|
14
|
-
}
|
|
15
|
-
interface LegalInfo {
|
|
16
|
-
legalName?: string;
|
|
17
|
-
registrationDate?: string;
|
|
18
|
-
taxRegistrationNumber?: string;
|
|
19
|
-
registrationAgency?: string;
|
|
20
|
-
countryOfRegistration?: string;
|
|
21
|
-
registrationId?: string;
|
|
22
|
-
}
|
|
23
|
-
interface CustomerGroupRef {
|
|
24
|
-
id: string;
|
|
25
|
-
name?: Record<string, string>;
|
|
26
|
-
role?: string;
|
|
27
|
-
}
|
|
28
|
-
interface ResourceId {
|
|
29
|
-
id: string;
|
|
30
|
-
}
|
|
31
|
-
interface Metadata {
|
|
32
|
-
version?: number;
|
|
33
|
-
createdAt?: string;
|
|
34
|
-
modifiedAt?: string;
|
|
35
|
-
mixins?: Record<string, unknown>;
|
|
36
|
-
}
|
|
37
|
-
interface LegalEntity {
|
|
38
|
-
id: string;
|
|
39
|
-
name: string;
|
|
40
|
-
type: LegalEntityType;
|
|
41
|
-
parentId?: string;
|
|
42
|
-
accountLimit?: AccountLimit;
|
|
43
|
-
legalInfo?: LegalInfo;
|
|
44
|
-
customerGroups?: CustomerGroupRef[];
|
|
45
|
-
entitiesAddresses?: ResourceId[];
|
|
46
|
-
approvalGroup?: ResourceId[];
|
|
47
|
-
restrictions?: string[];
|
|
48
|
-
metadata?: Metadata;
|
|
49
|
-
mixins?: Record<string, unknown>;
|
|
50
|
-
}
|
|
51
|
-
interface LegalEntityCreate {
|
|
52
|
-
id?: string;
|
|
53
|
-
name: string;
|
|
54
|
-
type?: LegalEntityType;
|
|
55
|
-
parentId?: string;
|
|
56
|
-
accountLimit?: AccountLimit;
|
|
57
|
-
legalInfo?: LegalInfo;
|
|
58
|
-
customerGroups?: CustomerGroupRef[];
|
|
59
|
-
entitiesAddresses?: ResourceId[];
|
|
60
|
-
approvalGroup?: ResourceId[];
|
|
61
|
-
restrictions?: string[];
|
|
62
|
-
metadata?: {
|
|
63
|
-
mixins?: Record<string, unknown>;
|
|
64
|
-
};
|
|
65
|
-
mixins?: Record<string, unknown>;
|
|
66
|
-
}
|
|
67
|
-
interface LegalEntityUpdate {
|
|
68
|
-
name?: string;
|
|
69
|
-
parentId?: string;
|
|
70
|
-
accountLimit?: AccountLimit;
|
|
71
|
-
legalInfo?: LegalInfo;
|
|
72
|
-
customerGroups?: CustomerGroupRef[];
|
|
73
|
-
entitiesAddresses?: ResourceId[];
|
|
74
|
-
approvalGroup?: ResourceId[];
|
|
75
|
-
restrictions?: string[];
|
|
76
|
-
metadata?: {
|
|
77
|
-
version: number;
|
|
78
|
-
mixins?: Record<string, unknown>;
|
|
79
|
-
};
|
|
80
|
-
mixins?: Record<string, unknown>;
|
|
81
|
-
}
|
|
82
|
-
type ContactAssignmentType = "PRIMARY" | "BILLING" | "LOGISTICS" | "CONTACT";
|
|
83
|
-
interface ContactAssignment {
|
|
84
|
-
id: string;
|
|
85
|
-
legalEntity?: LegalEntity | {
|
|
86
|
-
id: string;
|
|
87
|
-
};
|
|
88
|
-
customer?: {
|
|
89
|
-
id: string;
|
|
90
|
-
name?: string;
|
|
91
|
-
surname?: string;
|
|
92
|
-
email?: string;
|
|
93
|
-
phone?: string;
|
|
94
|
-
};
|
|
95
|
-
type?: ContactAssignmentType;
|
|
96
|
-
primary?: boolean;
|
|
97
|
-
metadata?: Metadata;
|
|
98
|
-
mixins?: Record<string, unknown>;
|
|
99
|
-
}
|
|
100
|
-
interface ContactAssignmentCreate {
|
|
101
|
-
id?: string;
|
|
102
|
-
legalEntity: {
|
|
103
|
-
id: string;
|
|
104
|
-
};
|
|
105
|
-
customer: {
|
|
106
|
-
id: string;
|
|
107
|
-
};
|
|
108
|
-
type?: ContactAssignmentType;
|
|
109
|
-
primary?: boolean;
|
|
110
|
-
metadata?: {
|
|
111
|
-
mixins?: Record<string, unknown>;
|
|
112
|
-
};
|
|
113
|
-
mixins?: Record<string, unknown>;
|
|
114
|
-
}
|
|
115
|
-
interface ContactAssignmentUpdate {
|
|
116
|
-
type?: ContactAssignmentType;
|
|
117
|
-
primary?: boolean;
|
|
118
|
-
metadata?: {
|
|
119
|
-
version: number;
|
|
120
|
-
mixins?: Record<string, unknown>;
|
|
121
|
-
};
|
|
122
|
-
mixins?: Record<string, unknown>;
|
|
123
|
-
}
|
|
124
|
-
type LocationType = "HEADQUARTER" | "WAREHOUSE" | "OFFICE";
|
|
125
|
-
interface ContactDetails {
|
|
126
|
-
emails?: string[];
|
|
127
|
-
phones?: string[];
|
|
128
|
-
addressLine1?: string;
|
|
129
|
-
addressLine2?: string;
|
|
130
|
-
city?: string;
|
|
131
|
-
state?: string;
|
|
132
|
-
postcode?: string;
|
|
133
|
-
countryCode?: string;
|
|
134
|
-
tags?: string[];
|
|
135
|
-
}
|
|
136
|
-
interface Location {
|
|
137
|
-
id: string;
|
|
138
|
-
name: string;
|
|
139
|
-
type: LocationType;
|
|
140
|
-
contactDetails?: ContactDetails;
|
|
141
|
-
metadata?: Metadata;
|
|
142
|
-
mixins?: Record<string, unknown>;
|
|
143
|
-
}
|
|
144
|
-
interface LocationCreate {
|
|
145
|
-
id?: string;
|
|
146
|
-
legalEntityId: string;
|
|
147
|
-
name: string;
|
|
148
|
-
type: LocationType;
|
|
149
|
-
contactDetails?: ContactDetails;
|
|
150
|
-
metadata?: {
|
|
151
|
-
mixins?: Record<string, unknown>;
|
|
152
|
-
};
|
|
153
|
-
mixins?: Record<string, unknown>;
|
|
154
|
-
}
|
|
155
|
-
interface LocationUpdate {
|
|
156
|
-
name?: string;
|
|
157
|
-
type?: LocationType;
|
|
158
|
-
contactDetails?: ContactDetails;
|
|
159
|
-
metadata?: {
|
|
160
|
-
version: number;
|
|
161
|
-
mixins?: Record<string, unknown>;
|
|
162
|
-
};
|
|
163
|
-
mixins?: Record<string, unknown>;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
export type { AccountLimit as A, ContactAssignment as C, LegalEntity as L, ContactAssignmentCreate as a, ContactAssignmentType as b, ContactAssignmentUpdate as c, ContactDetails as d, CustomerGroupRef as e, LegalEntityCreate as f, LegalEntityType as g, LegalEntityUpdate as h, LegalInfo as i, Location as j, LocationCreate as k, LocationType as l, LocationUpdate as m };
|
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Hand-written mirror of the Customer Management Service OpenAPI 0.0.1
|
|
3
|
-
* schemas. The shapes below are taken directly from the documented API
|
|
4
|
-
* (Legal Entities, Contact Assignments, Locations endpoints).
|
|
5
|
-
*
|
|
6
|
-
* **Not generated.** When the OpenAPI input file lands in the repo, this
|
|
7
|
-
* file is replaced by codegen output. Keep the exported names stable so the
|
|
8
|
-
* façade re-exports don't churn.
|
|
9
|
-
*/
|
|
10
|
-
type LegalEntityType = "COMPANY" | "SUBSIDIARY";
|
|
11
|
-
interface AccountLimit {
|
|
12
|
-
currency?: string;
|
|
13
|
-
value?: number;
|
|
14
|
-
}
|
|
15
|
-
interface LegalInfo {
|
|
16
|
-
legalName?: string;
|
|
17
|
-
registrationDate?: string;
|
|
18
|
-
taxRegistrationNumber?: string;
|
|
19
|
-
registrationAgency?: string;
|
|
20
|
-
countryOfRegistration?: string;
|
|
21
|
-
registrationId?: string;
|
|
22
|
-
}
|
|
23
|
-
interface CustomerGroupRef {
|
|
24
|
-
id: string;
|
|
25
|
-
name?: Record<string, string>;
|
|
26
|
-
role?: string;
|
|
27
|
-
}
|
|
28
|
-
interface ResourceId {
|
|
29
|
-
id: string;
|
|
30
|
-
}
|
|
31
|
-
interface Metadata {
|
|
32
|
-
version?: number;
|
|
33
|
-
createdAt?: string;
|
|
34
|
-
modifiedAt?: string;
|
|
35
|
-
mixins?: Record<string, unknown>;
|
|
36
|
-
}
|
|
37
|
-
interface LegalEntity {
|
|
38
|
-
id: string;
|
|
39
|
-
name: string;
|
|
40
|
-
type: LegalEntityType;
|
|
41
|
-
parentId?: string;
|
|
42
|
-
accountLimit?: AccountLimit;
|
|
43
|
-
legalInfo?: LegalInfo;
|
|
44
|
-
customerGroups?: CustomerGroupRef[];
|
|
45
|
-
entitiesAddresses?: ResourceId[];
|
|
46
|
-
approvalGroup?: ResourceId[];
|
|
47
|
-
restrictions?: string[];
|
|
48
|
-
metadata?: Metadata;
|
|
49
|
-
mixins?: Record<string, unknown>;
|
|
50
|
-
}
|
|
51
|
-
interface LegalEntityCreate {
|
|
52
|
-
id?: string;
|
|
53
|
-
name: string;
|
|
54
|
-
type?: LegalEntityType;
|
|
55
|
-
parentId?: string;
|
|
56
|
-
accountLimit?: AccountLimit;
|
|
57
|
-
legalInfo?: LegalInfo;
|
|
58
|
-
customerGroups?: CustomerGroupRef[];
|
|
59
|
-
entitiesAddresses?: ResourceId[];
|
|
60
|
-
approvalGroup?: ResourceId[];
|
|
61
|
-
restrictions?: string[];
|
|
62
|
-
metadata?: {
|
|
63
|
-
mixins?: Record<string, unknown>;
|
|
64
|
-
};
|
|
65
|
-
mixins?: Record<string, unknown>;
|
|
66
|
-
}
|
|
67
|
-
interface LegalEntityUpdate {
|
|
68
|
-
name?: string;
|
|
69
|
-
parentId?: string;
|
|
70
|
-
accountLimit?: AccountLimit;
|
|
71
|
-
legalInfo?: LegalInfo;
|
|
72
|
-
customerGroups?: CustomerGroupRef[];
|
|
73
|
-
entitiesAddresses?: ResourceId[];
|
|
74
|
-
approvalGroup?: ResourceId[];
|
|
75
|
-
restrictions?: string[];
|
|
76
|
-
metadata?: {
|
|
77
|
-
version: number;
|
|
78
|
-
mixins?: Record<string, unknown>;
|
|
79
|
-
};
|
|
80
|
-
mixins?: Record<string, unknown>;
|
|
81
|
-
}
|
|
82
|
-
type ContactAssignmentType = "PRIMARY" | "BILLING" | "LOGISTICS" | "CONTACT";
|
|
83
|
-
interface ContactAssignment {
|
|
84
|
-
id: string;
|
|
85
|
-
legalEntity?: LegalEntity | {
|
|
86
|
-
id: string;
|
|
87
|
-
};
|
|
88
|
-
customer?: {
|
|
89
|
-
id: string;
|
|
90
|
-
name?: string;
|
|
91
|
-
surname?: string;
|
|
92
|
-
email?: string;
|
|
93
|
-
phone?: string;
|
|
94
|
-
};
|
|
95
|
-
type?: ContactAssignmentType;
|
|
96
|
-
primary?: boolean;
|
|
97
|
-
metadata?: Metadata;
|
|
98
|
-
mixins?: Record<string, unknown>;
|
|
99
|
-
}
|
|
100
|
-
interface ContactAssignmentCreate {
|
|
101
|
-
id?: string;
|
|
102
|
-
legalEntity: {
|
|
103
|
-
id: string;
|
|
104
|
-
};
|
|
105
|
-
customer: {
|
|
106
|
-
id: string;
|
|
107
|
-
};
|
|
108
|
-
type?: ContactAssignmentType;
|
|
109
|
-
primary?: boolean;
|
|
110
|
-
metadata?: {
|
|
111
|
-
mixins?: Record<string, unknown>;
|
|
112
|
-
};
|
|
113
|
-
mixins?: Record<string, unknown>;
|
|
114
|
-
}
|
|
115
|
-
interface ContactAssignmentUpdate {
|
|
116
|
-
type?: ContactAssignmentType;
|
|
117
|
-
primary?: boolean;
|
|
118
|
-
metadata?: {
|
|
119
|
-
version: number;
|
|
120
|
-
mixins?: Record<string, unknown>;
|
|
121
|
-
};
|
|
122
|
-
mixins?: Record<string, unknown>;
|
|
123
|
-
}
|
|
124
|
-
type LocationType = "HEADQUARTER" | "WAREHOUSE" | "OFFICE";
|
|
125
|
-
interface ContactDetails {
|
|
126
|
-
emails?: string[];
|
|
127
|
-
phones?: string[];
|
|
128
|
-
addressLine1?: string;
|
|
129
|
-
addressLine2?: string;
|
|
130
|
-
city?: string;
|
|
131
|
-
state?: string;
|
|
132
|
-
postcode?: string;
|
|
133
|
-
countryCode?: string;
|
|
134
|
-
tags?: string[];
|
|
135
|
-
}
|
|
136
|
-
interface Location {
|
|
137
|
-
id: string;
|
|
138
|
-
name: string;
|
|
139
|
-
type: LocationType;
|
|
140
|
-
contactDetails?: ContactDetails;
|
|
141
|
-
metadata?: Metadata;
|
|
142
|
-
mixins?: Record<string, unknown>;
|
|
143
|
-
}
|
|
144
|
-
interface LocationCreate {
|
|
145
|
-
id?: string;
|
|
146
|
-
legalEntityId: string;
|
|
147
|
-
name: string;
|
|
148
|
-
type: LocationType;
|
|
149
|
-
contactDetails?: ContactDetails;
|
|
150
|
-
metadata?: {
|
|
151
|
-
mixins?: Record<string, unknown>;
|
|
152
|
-
};
|
|
153
|
-
mixins?: Record<string, unknown>;
|
|
154
|
-
}
|
|
155
|
-
interface LocationUpdate {
|
|
156
|
-
name?: string;
|
|
157
|
-
type?: LocationType;
|
|
158
|
-
contactDetails?: ContactDetails;
|
|
159
|
-
metadata?: {
|
|
160
|
-
version: number;
|
|
161
|
-
mixins?: Record<string, unknown>;
|
|
162
|
-
};
|
|
163
|
-
mixins?: Record<string, unknown>;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
export type { AccountLimit as A, ContactAssignment as C, LegalEntity as L, ContactAssignmentCreate as a, ContactAssignmentType as b, ContactAssignmentUpdate as c, ContactDetails as d, CustomerGroupRef as e, LegalEntityCreate as f, LegalEntityType as g, LegalEntityUpdate as h, LegalInfo as i, Location as j, LocationCreate as k, LocationType as l, LocationUpdate as m };
|