@rlvt/entity-manager-openapi-client 0.0.0-d2162c3 → 0.0.0-de4740c
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/build/api.d.ts +1745 -111
- package/build/api.js +132 -46
- package/build/definitions.d.ts +295 -129
- package/build/definitions.js +13 -1
- package/build/index.d.ts +8 -0
- package/build/index.js +19 -0
- package/package.json +4 -4
package/build/definitions.d.ts
CHANGED
|
@@ -1,163 +1,329 @@
|
|
|
1
1
|
declare type readonlyP = {
|
|
2
|
-
readonly?:
|
|
2
|
+
readonly?: '__readonly';
|
|
3
3
|
};
|
|
4
4
|
declare type writeonlyP = {
|
|
5
|
-
writeonly?:
|
|
6
|
-
};
|
|
7
|
-
declare type Id<T> = {} & {
|
|
8
|
-
[P in keyof T]: T[P];
|
|
5
|
+
writeonly?: '__writeonly';
|
|
9
6
|
};
|
|
10
7
|
declare type Primitive = string | Function | number | boolean | Symbol | undefined | null | Date;
|
|
11
|
-
declare type
|
|
12
|
-
[
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
declare type
|
|
21
|
-
[key in keyof T]:
|
|
22
|
-
};
|
|
23
|
-
export declare
|
|
8
|
+
declare type PropsWithoutReadonly<T> = {
|
|
9
|
+
[key in keyof T]: T[key] extends readonlyP ? NonNullable<T[key]['readonly']> extends '__readonly' ? never : key : key;
|
|
10
|
+
}[keyof T];
|
|
11
|
+
export declare type WithoutReadonly<T> = T extends any ? T extends Primitive ? T : T extends Array<infer U> ? WithoutReadonly<U>[] : {
|
|
12
|
+
[key in keyof Pick<T, PropsWithoutReadonly<T>>]: Pick<T, PropsWithoutReadonly<T>>[key] extends any ? WithoutReadonly<Pick<T, PropsWithoutReadonly<T>>[key]> : never;
|
|
13
|
+
} : never;
|
|
14
|
+
declare type PropsWithoutWriteonly<T> = {
|
|
15
|
+
[key in keyof T]: T[key] extends writeonlyP ? NonNullable<T[key]['writeonly']> extends '__writeonly' ? never : key : key;
|
|
16
|
+
}[keyof T];
|
|
17
|
+
export declare type WithoutWriteonly<T> = T extends any ? T extends Primitive ? T : T extends Array<infer U> ? WithoutWriteonly<U>[] : {
|
|
18
|
+
[key in keyof Pick<T, PropsWithoutWriteonly<T>>]: Pick<T, PropsWithoutWriteonly<T>>[key] extends any ? WithoutWriteonly<Pick<T, PropsWithoutWriteonly<T>>[key]> : never;
|
|
19
|
+
} : never;
|
|
20
|
+
export declare enum Providers {
|
|
21
|
+
GOOGLE = "google",
|
|
22
|
+
SHOPIFY = "shopify"
|
|
23
|
+
}
|
|
24
|
+
export declare type UserProfile = {
|
|
25
|
+
firstname?: string;
|
|
26
|
+
lastname?: string;
|
|
27
|
+
jobtitle?: string;
|
|
28
|
+
phone?: string;
|
|
29
|
+
preferredLang?: string;
|
|
30
|
+
preferredRecipientId?: string;
|
|
31
|
+
preferredMessageId?: string;
|
|
32
|
+
preferredUtm?: {
|
|
33
|
+
medium?: string;
|
|
34
|
+
source?: string;
|
|
35
|
+
campaign?: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
export declare type SerializedUser = {
|
|
39
|
+
readonly id: (string) & readonlyP;
|
|
40
|
+
readonly companyId: (string) & readonlyP;
|
|
41
|
+
readonly roleId: (string) & readonlyP;
|
|
42
|
+
readonly resourceGroupIds: (string[]) & readonlyP;
|
|
43
|
+
readonly createdAt: (Date) & readonlyP;
|
|
44
|
+
readonly updatedAt: (Date) & readonlyP;
|
|
45
|
+
password: (string) & writeonlyP;
|
|
46
|
+
email: string;
|
|
47
|
+
readonly lastPasswordUpdate: (Date) & readonlyP;
|
|
48
|
+
readonly disabled: (boolean) & readonlyP;
|
|
49
|
+
readonly mustUpdatePassword: (boolean) & readonlyP;
|
|
50
|
+
readonly connection: ({
|
|
51
|
+
lastAttempts?: Date;
|
|
52
|
+
nbFail?: number;
|
|
53
|
+
}) & readonlyP;
|
|
54
|
+
profile?: UserProfile;
|
|
55
|
+
readonly hasOtp: (boolean) & readonlyP;
|
|
56
|
+
};
|
|
57
|
+
export declare type User = SerializedUser;
|
|
24
58
|
export declare type Plan = {
|
|
25
|
-
|
|
26
|
-
|
|
59
|
+
quota: number;
|
|
60
|
+
name?: string;
|
|
61
|
+
startDate?: Date;
|
|
62
|
+
endDate?: Date;
|
|
27
63
|
};
|
|
28
64
|
export declare type PasswordPolicy = {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
};
|
|
41
|
-
export declare type
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
65
|
+
passwordDuration?: number;
|
|
66
|
+
nbSpCharacter?: number;
|
|
67
|
+
nbIsNotAlphabeticCharacter?: number;
|
|
68
|
+
nbNumberCharacter?: number;
|
|
69
|
+
nbLetterInLowercase?: number;
|
|
70
|
+
nbLetterInUppercase?: number;
|
|
71
|
+
nbCharacter?: number;
|
|
72
|
+
nbAttempts?: number;
|
|
73
|
+
timeEachAttempts?: number;
|
|
74
|
+
timeLockAfterNextAttempts?: number;
|
|
75
|
+
infiniteTimeLock?: boolean;
|
|
76
|
+
};
|
|
77
|
+
export declare type CompanyPasswordSecurityPolicy = {
|
|
78
|
+
duration: number;
|
|
79
|
+
rules: {
|
|
80
|
+
type: "special-characters" | "numbers" | "characters" | "uppercases" | "lowercases";
|
|
81
|
+
options: {
|
|
82
|
+
minimum?: number;
|
|
83
|
+
maximum?: number;
|
|
84
|
+
};
|
|
85
|
+
}[];
|
|
86
|
+
attempts: {
|
|
87
|
+
maximum: number;
|
|
88
|
+
lockDuration: number;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
export declare type CompanySecurityPolicy = {
|
|
92
|
+
password: CompanyPasswordSecurityPolicy;
|
|
93
|
+
};
|
|
94
|
+
export declare type AnyValue = any | null;
|
|
95
|
+
export declare type IdpMetadata = {
|
|
96
|
+
xmlString: string;
|
|
97
|
+
meta: AnyValue;
|
|
98
|
+
};
|
|
99
|
+
export declare type Buffer = {
|
|
100
|
+
type: "Buffer";
|
|
101
|
+
data: number[];
|
|
102
|
+
};
|
|
103
|
+
export declare type SSOService = {
|
|
104
|
+
isDefault?: boolean;
|
|
105
|
+
Binding: string;
|
|
106
|
+
Location: string;
|
|
107
|
+
};
|
|
108
|
+
export declare type SignatureConfig = {
|
|
109
|
+
prefix?: string;
|
|
110
|
+
location?: {
|
|
111
|
+
reference?: string;
|
|
112
|
+
action?: "append" | "prepend" | "before" | "after";
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
export declare type SAMLDocumentTemplate = {
|
|
116
|
+
context?: string;
|
|
117
|
+
};
|
|
118
|
+
export declare type ServiceProviderSettings = {
|
|
119
|
+
metadata?: string | Buffer;
|
|
120
|
+
entityID?: string;
|
|
121
|
+
authnRequestsSigned?: boolean;
|
|
122
|
+
wantAssertionsSigned?: boolean;
|
|
123
|
+
wantMessageSigned?: boolean;
|
|
124
|
+
wantLogoutResponseSigned?: boolean;
|
|
125
|
+
wantLogoutRequestSigned?: boolean;
|
|
126
|
+
privateKey?: string | Buffer;
|
|
127
|
+
privateKeyPass?: string;
|
|
128
|
+
isAssertionEncrypted?: boolean;
|
|
129
|
+
requestSignatureAlgorithm?: string;
|
|
130
|
+
encPrivateKey?: string | Buffer;
|
|
131
|
+
encPrivateKeyPass?: string | Buffer;
|
|
132
|
+
assertionConsumerService?: SSOService[];
|
|
133
|
+
singleLogoutService?: SSOService[];
|
|
134
|
+
signatureConfig?: SignatureConfig;
|
|
135
|
+
loginRequestTemplate?: SAMLDocumentTemplate;
|
|
136
|
+
logoutRequestTemplate?: SAMLDocumentTemplate;
|
|
137
|
+
signingCert?: string | Buffer;
|
|
138
|
+
encryptCert?: string | Buffer;
|
|
139
|
+
transformationAlgorithms?: string[];
|
|
140
|
+
nameIDFormat?: string[];
|
|
141
|
+
allowCreate?: boolean;
|
|
142
|
+
relayState?: string;
|
|
143
|
+
clockDrifts?: (number | number)[];
|
|
144
|
+
};
|
|
145
|
+
export declare type LoginResponseAttribute = {
|
|
146
|
+
name: string;
|
|
147
|
+
nameFormat: string;
|
|
148
|
+
valueXsiType: string;
|
|
149
|
+
valueTag: string;
|
|
150
|
+
valueXmlnsXs?: string;
|
|
151
|
+
valueXmlnsXsi?: string;
|
|
48
152
|
};
|
|
153
|
+
export declare type LoginResponseTemplate = {
|
|
154
|
+
attributes?: LoginResponseAttribute[];
|
|
155
|
+
context: string;
|
|
156
|
+
};
|
|
157
|
+
export declare type IdentityProviderSettings = {
|
|
158
|
+
metadata?: string | Buffer;
|
|
159
|
+
requestSignatureAlgorithm?: string;
|
|
160
|
+
loginResponseTemplate?: LoginResponseTemplate;
|
|
161
|
+
logoutRequestTemplate?: SAMLDocumentTemplate;
|
|
162
|
+
generateID?: {};
|
|
163
|
+
entityID?: string;
|
|
164
|
+
privateKey?: string | Buffer;
|
|
165
|
+
privateKeyPass?: string;
|
|
166
|
+
signingCert?: string | Buffer;
|
|
167
|
+
encryptCert?: string | Buffer;
|
|
168
|
+
nameIDFormat?: string[];
|
|
169
|
+
singleSignOnService?: SSOService[];
|
|
170
|
+
singleLogoutService?: SSOService[];
|
|
171
|
+
isAssertionEncrypted?: boolean;
|
|
172
|
+
encPrivateKey?: string | Buffer;
|
|
173
|
+
encPrivateKeyPass?: string;
|
|
174
|
+
messageSigningOrder?: string;
|
|
175
|
+
wantLogoutRequestSigned?: boolean;
|
|
176
|
+
wantLogoutResponseSigned?: boolean;
|
|
177
|
+
wantAuthnRequestsSigned?: boolean;
|
|
178
|
+
wantLogoutRequestSignedResponseSigned?: boolean;
|
|
179
|
+
tagPrefix?: {
|
|
180
|
+
[key: string]: string;
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
export declare type IdentityProvider = {
|
|
184
|
+
entityMeta: IdpMetadata;
|
|
185
|
+
entitySetting: ServiceProviderSettings & IdentityProviderSettings;
|
|
186
|
+
entityType: string;
|
|
187
|
+
};
|
|
188
|
+
export declare type SpMetadata = {
|
|
189
|
+
xmlString: string;
|
|
190
|
+
meta: AnyValue;
|
|
191
|
+
};
|
|
192
|
+
export declare type ServiceProvider = {
|
|
193
|
+
entityMeta: SpMetadata;
|
|
194
|
+
entitySetting: ServiceProviderSettings & IdentityProviderSettings;
|
|
195
|
+
entityType: string;
|
|
196
|
+
};
|
|
197
|
+
export declare type Pick_SSOConfiguration_domains_or_metadata_or_emailProperty_or_mode_or_identityProvider_or_serviceProvider_ = {
|
|
198
|
+
domains: string[];
|
|
199
|
+
metadata: string;
|
|
200
|
+
emailProperty: "nameID"[] | ("attributes" | string)[];
|
|
201
|
+
mode: "invitation" | "create";
|
|
202
|
+
readonly identityProvider: (IdentityProvider) & readonlyP;
|
|
203
|
+
readonly serviceProvider: (ServiceProvider) & readonlyP;
|
|
204
|
+
};
|
|
205
|
+
export declare type SSOConfiguration = Pick_SSOConfiguration_domains_or_metadata_or_emailProperty_or_mode_or_identityProvider_or_serviceProvider_;
|
|
49
206
|
export declare type SerializedCompany = {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
207
|
+
readonly id: (string) & readonlyP;
|
|
208
|
+
defaultRoleId: string;
|
|
209
|
+
defaultResourceGroupIds: string[];
|
|
210
|
+
readonly createdAt: (Date) & readonlyP;
|
|
211
|
+
readonly updatedAt: (Date) & readonlyP;
|
|
212
|
+
plan: Plan & {
|
|
213
|
+
startDate: Date;
|
|
214
|
+
endDate: Date;
|
|
215
|
+
};
|
|
216
|
+
name: string;
|
|
217
|
+
password?: PasswordPolicy;
|
|
218
|
+
disabled: boolean;
|
|
219
|
+
address?: {
|
|
220
|
+
line1?: string;
|
|
221
|
+
line2?: string;
|
|
222
|
+
zipcode?: string;
|
|
223
|
+
city?: string;
|
|
224
|
+
country?: string;
|
|
225
|
+
};
|
|
226
|
+
contact?: {
|
|
227
|
+
name?: string;
|
|
228
|
+
email?: string;
|
|
59
229
|
};
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
230
|
+
securityPolicy: CompanySecurityPolicy;
|
|
231
|
+
sso?: SSOConfiguration;
|
|
232
|
+
custom?: {
|
|
233
|
+
colors?: string[];
|
|
63
234
|
};
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
235
|
+
retention: number;
|
|
236
|
+
features: {
|
|
237
|
+
[key: string]: boolean;
|
|
67
238
|
};
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
239
|
+
events: {
|
|
240
|
+
product_page: string;
|
|
241
|
+
add_cart: string;
|
|
242
|
+
purchase: string;
|
|
71
243
|
};
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
'events': Record_product_page_or_add_cart_or_purchase_string_;
|
|
75
|
-
'disabled': boolean;
|
|
76
|
-
'meta': {
|
|
77
|
-
'email-token'?: string;
|
|
78
|
-
'esp'?: string;
|
|
244
|
+
meta: {
|
|
245
|
+
[key: string]: string | number | (false) | (true);
|
|
79
246
|
};
|
|
80
247
|
};
|
|
81
248
|
export declare type Company = SerializedCompany;
|
|
82
|
-
export declare type
|
|
83
|
-
|
|
84
|
-
|
|
249
|
+
export declare type Partial__roleId_string_resourceGroupIds_string_Array___ = {
|
|
250
|
+
roleId?: string;
|
|
251
|
+
resourceGroupIds?: string[];
|
|
85
252
|
};
|
|
86
|
-
export declare type
|
|
87
|
-
|
|
88
|
-
|
|
253
|
+
export declare type Partial_Pick_Company_meta__ = {
|
|
254
|
+
meta?: {
|
|
255
|
+
[key: string]: string | number | (false) | (true);
|
|
256
|
+
};
|
|
89
257
|
};
|
|
90
258
|
export declare type RoleRule = {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
259
|
+
fields?: string[];
|
|
260
|
+
conditions?: {
|
|
261
|
+
[key: string]: AnyValue;
|
|
262
|
+
};
|
|
263
|
+
inverted?: boolean;
|
|
264
|
+
reason?: string;
|
|
265
|
+
action: "create" | "read" | "update" | "delete" | "access";
|
|
266
|
+
subject: "Company" | "Block" | "Campaign" | "BranchGroup" | "Datasource" | "OAuthClient" | "Statistics" | "BlockContent" | "User" | "Billing" | "Role" | "ResourceGroup" | "Invitation";
|
|
267
|
+
mustMatch?: ("companyId" | "roleId" | "resourceGroupIds" | "id" | {
|
|
268
|
+
field: string;
|
|
269
|
+
value: "companyId" | "roleId" | "resourceGroupIds" | "id";
|
|
270
|
+
})[];
|
|
101
271
|
};
|
|
102
272
|
export declare type SerializedRole = {
|
|
103
|
-
readonly
|
|
104
|
-
readonly
|
|
105
|
-
|
|
106
|
-
|
|
273
|
+
readonly id: (string) & readonlyP;
|
|
274
|
+
readonly companyId: (string) & readonlyP;
|
|
275
|
+
name: string;
|
|
276
|
+
rules: RoleRule[];
|
|
107
277
|
};
|
|
108
278
|
export declare type Pick_Role_name_or_toJSON_or_rules_ = SerializedRole;
|
|
109
279
|
export declare type Role = SerializedRole;
|
|
280
|
+
export declare enum InvitationState {
|
|
281
|
+
WAITING = "waiting",
|
|
282
|
+
USED = "used",
|
|
283
|
+
CANCELED = "canceled"
|
|
284
|
+
}
|
|
285
|
+
export declare type SerializedInvitation = {
|
|
286
|
+
readonly id: (string) & readonlyP;
|
|
287
|
+
readonly companyId: (string) & readonlyP;
|
|
288
|
+
readonly roleId: (string) & readonlyP;
|
|
289
|
+
readonly resourceGroupIds: (string[]) & readonlyP;
|
|
290
|
+
state: InvitationState;
|
|
291
|
+
email: string;
|
|
292
|
+
createdAt: Date;
|
|
293
|
+
usedAt?: Date;
|
|
294
|
+
};
|
|
295
|
+
export declare type Invitation = SerializedInvitation;
|
|
110
296
|
export declare type SerializedResourceGroup = {
|
|
111
|
-
readonly
|
|
112
|
-
readonly
|
|
113
|
-
|
|
114
|
-
|
|
297
|
+
readonly id: (string) & readonlyP;
|
|
298
|
+
readonly companyId: (string) & readonlyP;
|
|
299
|
+
name: string;
|
|
300
|
+
color?: string;
|
|
115
301
|
};
|
|
116
302
|
export declare type ResourceGroup = SerializedResourceGroup;
|
|
117
303
|
export declare type Partial_Pick_Pick_ResourceGroup___name_or_color__ = {
|
|
118
|
-
|
|
119
|
-
|
|
304
|
+
name?: string;
|
|
305
|
+
color?: string;
|
|
120
306
|
};
|
|
121
307
|
export declare type Partial_Pick_Pick_Role___name_or_rules_or_undefined__ = {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
};
|
|
125
|
-
export declare type UserProfile = {
|
|
126
|
-
'firstname'?: string;
|
|
127
|
-
'lastname'?: string;
|
|
128
|
-
'jobtitle'?: string;
|
|
129
|
-
'phone'?: string;
|
|
130
|
-
'preferredLang'?: string;
|
|
131
|
-
};
|
|
132
|
-
export declare type SerializedUser = {
|
|
133
|
-
readonly 'companyId': string & readonlyP;
|
|
134
|
-
readonly 'roleId': string & readonlyP;
|
|
135
|
-
readonly 'resourceGroupIds': (string)[] & readonlyP;
|
|
136
|
-
'password': string & writeonlyP;
|
|
137
|
-
readonly 'disabled': boolean & readonlyP;
|
|
138
|
-
'email': string;
|
|
139
|
-
readonly 'lastPasswordUpdate': Date & readonlyP;
|
|
140
|
-
readonly 'mustUpdatePassword': boolean & readonlyP;
|
|
141
|
-
readonly 'connection': {
|
|
142
|
-
'lastAttempts'?: Date;
|
|
143
|
-
'nbFail'?: number;
|
|
144
|
-
} & readonlyP;
|
|
145
|
-
'profile'?: UserProfile;
|
|
308
|
+
name?: string;
|
|
309
|
+
rules?: RoleRule[];
|
|
146
310
|
};
|
|
147
|
-
export declare type
|
|
148
|
-
|
|
149
|
-
readonly
|
|
150
|
-
readonly
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
readonly
|
|
154
|
-
|
|
155
|
-
readonly
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
311
|
+
export declare type Partial_Pick_SerializedUser_companyId_or_roleId_or_resourceGroupIds_or_email_or_lastPasswordUpdate_or_disabled_or_mustUpdatePassword_or_connection_or_profile_or_hasOtp_or_id_or_createdAt_or_updatedAt__ = {
|
|
312
|
+
readonly companyId?: (string) & readonlyP;
|
|
313
|
+
readonly roleId?: (string) & readonlyP;
|
|
314
|
+
readonly resourceGroupIds?: (string[]) & readonlyP;
|
|
315
|
+
email?: string;
|
|
316
|
+
readonly lastPasswordUpdate?: (Date) & readonlyP;
|
|
317
|
+
readonly disabled?: (boolean) & readonlyP;
|
|
318
|
+
readonly mustUpdatePassword?: (boolean) & readonlyP;
|
|
319
|
+
readonly connection?: ({
|
|
320
|
+
lastAttempts?: Date;
|
|
321
|
+
nbFail?: number;
|
|
322
|
+
}) & readonlyP;
|
|
323
|
+
profile?: UserProfile;
|
|
324
|
+
readonly hasOtp?: (boolean) & readonlyP;
|
|
325
|
+
readonly id?: (string) & readonlyP;
|
|
326
|
+
readonly createdAt?: (Date) & readonlyP;
|
|
327
|
+
readonly updatedAt?: (Date) & readonlyP;
|
|
162
328
|
};
|
|
163
329
|
export {};
|
package/build/definitions.js
CHANGED
|
@@ -2,4 +2,16 @@
|
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
|
|
5
|
+
exports.InvitationState = exports.Providers = void 0;
|
|
6
|
+
var Providers;
|
|
7
|
+
(function (Providers) {
|
|
8
|
+
Providers["GOOGLE"] = "google";
|
|
9
|
+
Providers["SHOPIFY"] = "shopify";
|
|
10
|
+
})(Providers = exports.Providers || (exports.Providers = {}));
|
|
11
|
+
var InvitationState;
|
|
12
|
+
(function (InvitationState) {
|
|
13
|
+
InvitationState["WAITING"] = "waiting";
|
|
14
|
+
InvitationState["USED"] = "used";
|
|
15
|
+
InvitationState["CANCELED"] = "canceled";
|
|
16
|
+
})(InvitationState = exports.InvitationState || (exports.InvitationState = {}));
|
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmaW5pdGlvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9kZWZpbml0aW9ucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsb0JBQW9CO0FBQ3BCLG9CQUFvQjs7O0FBZ0NwQixJQUFZLFNBR1g7QUFIRCxXQUFZLFNBQVM7SUFDakIsOEJBQWlCLENBQUE7SUFDakIsZ0NBQW1CLENBQUE7QUFDdkIsQ0FBQyxFQUhXLFNBQVMsR0FBVCxpQkFBUyxLQUFULGlCQUFTLFFBR3BCO0FBbVFELElBQVksZUFJWDtBQUpELFdBQVksZUFBZTtJQUN2QixzQ0FBbUIsQ0FBQTtJQUNuQixnQ0FBYSxDQUFBO0lBQ2Isd0NBQXFCLENBQUE7QUFDekIsQ0FBQyxFQUpXLGVBQWUsR0FBZix1QkFBZSxLQUFmLHVCQUFlLFFBSTFCIn0=
|
package/build/index.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import Api from './api';
|
|
2
|
+
export * from './api';
|
|
3
|
+
export default Api;
|
|
4
|
+
declare type Unpromisify<T> = T extends Promise<infer U> ? U : T;
|
|
5
|
+
export declare type FunctionParamsForMethod<T extends Exclude<keyof InstanceType<typeof Api>, 'axios'>, U extends keyof InstanceType<typeof Api>[T]> = Parameters<InstanceType<typeof Api>[T][U]>;
|
|
6
|
+
export declare type ReturnForMethod<T extends Exclude<keyof InstanceType<typeof Api>, 'axios'>, U extends keyof InstanceType<typeof Api>[T]> = Unpromisify<ReturnType<InstanceType<typeof Api>[T][U]>>['data']['data'];
|
|
7
|
+
export declare type BodyForMethod<T extends Exclude<keyof InstanceType<typeof Api>, 'axios'>, U extends keyof InstanceType<typeof Api>[T]> = FunctionParamsForMethod<T, U>[1];
|
|
8
|
+
export declare type ParamsForMethod<T extends Exclude<keyof InstanceType<typeof Api>, 'axios'>, U extends keyof InstanceType<typeof Api>[T]> = FunctionParamsForMethod<T, U>[0];
|
package/build/index.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
13
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
14
|
+
};
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
const api_1 = __importDefault(require("./api"));
|
|
17
|
+
__exportStar(require("./api"), exports);
|
|
18
|
+
exports.default = api_1.default;
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7QUFBQSxnREFBdUI7QUFFdkIsd0NBQXFCO0FBQ3JCLGtCQUFlLGFBQUcsQ0FBQSJ9
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rlvt/entity-manager-openapi-client",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-de4740c",
|
|
4
4
|
"description": "Openapi client for reelevant service",
|
|
5
|
-
"main": "build/
|
|
5
|
+
"main": "build/index.js",
|
|
6
6
|
"repository": "https://github.com/reelevant-tech/openapi-clients",
|
|
7
7
|
"author": "Reelevant",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"publishconfig": {
|
|
10
|
-
"access": "
|
|
10
|
+
"access": "public"
|
|
11
11
|
},
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc --project .",
|
|
14
14
|
"prepublish": "yarn build"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"axios": "^0.
|
|
17
|
+
"axios": "^0.21.1"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@types/axios": "^0.14.0",
|