@rlvt/entity-manager-openapi-client 0.0.0-34c4c07 → 0.0.0-365a49c

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