@vertikalx/vtx-backend-client 1.0.0-dev-daniel.0 → 1.0.0-dev-daniel.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.
- package/package.json +2 -2
- package/runtime/createClient.d.ts +4 -10
- package/schema.d.ts +0 -298
- package/schema.js +1 -78
- package/schema.js.map +1 -1
- package/src/api/BaseServerApi.d.ts +4 -0
- package/src/api/BaseServerApi.js +13 -0
- package/src/api/BaseServerApi.js.map +1 -0
- package/src/client/index.d.ts +25 -0
- package/src/client/index.js +44 -0
- package/src/client/index.js.map +1 -0
- package/src/client/runtime/batcher.d.ts +36 -0
- package/src/client/runtime/batcher.js +123 -0
- package/src/client/runtime/batcher.js.map +1 -0
- package/src/client/runtime/createClient.d.ts +23 -0
- package/src/client/runtime/createClient.js +28 -0
- package/src/client/runtime/createClient.js.map +1 -0
- package/src/client/runtime/error.d.ts +15 -0
- package/src/client/runtime/error.js +19 -0
- package/src/client/runtime/error.js.map +1 -0
- package/src/client/runtime/fetcher.d.ts +10 -0
- package/src/client/runtime/fetcher.js +68 -0
- package/src/client/runtime/fetcher.js.map +1 -0
- package/src/client/runtime/generateGraphqlOperation.d.ts +30 -0
- package/src/client/runtime/generateGraphqlOperation.js +134 -0
- package/src/client/runtime/generateGraphqlOperation.js.map +1 -0
- package/src/client/runtime/index.d.ts +11 -0
- package/src/client/runtime/index.js +17 -0
- package/src/client/runtime/index.js.map +1 -0
- package/src/client/runtime/linkTypeMap.d.ts +9 -0
- package/src/client/runtime/linkTypeMap.js +95 -0
- package/src/client/runtime/linkTypeMap.js.map +1 -0
- package/src/client/runtime/typeSelection.d.ts +28 -0
- package/src/client/runtime/typeSelection.js +3 -0
- package/src/client/runtime/typeSelection.js.map +1 -0
- package/src/client/runtime/types.d.ts +55 -0
- package/src/client/runtime/types.js +3 -0
- package/src/client/runtime/types.js.map +1 -0
- package/src/client/schema.d.ts +406 -0
- package/{schema.graphql → src/client/schema.graphql} +0 -131
- package/src/client/schema.js +109 -0
- package/src/client/schema.js.map +1 -0
- package/src/client/types.d.ts +207 -0
- package/{types.ts → src/client/types.js} +23 -358
- package/src/client/types.js.map +1 -0
- package/src/index.d.ts +2 -0
- package/src/index.js +19 -0
- package/src/index.js.map +1 -0
- package/tsconfig.lib.tsbuildinfo +1 -1
- package/types.d.ts +0 -128
- package/types.js +18 -356
- package/types.js.map +1 -1
- package/index.ts +0 -65
- package/runtime/batcher.ts +0 -275
- package/runtime/createClient.ts +0 -68
- package/runtime/error.ts +0 -29
- package/runtime/fetcher.ts +0 -97
- package/runtime/generateGraphqlOperation.ts +0 -225
- package/runtime/index.ts +0 -13
- package/runtime/linkTypeMap.ts +0 -156
- package/runtime/typeSelection.ts +0 -95
- package/runtime/types.ts +0 -69
- package/schema.ts +0 -795
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vertikalx/vtx-backend-client",
|
|
3
|
-
"version": "1.0.0-dev-daniel.
|
|
3
|
+
"version": "1.0.0-dev-daniel.1",
|
|
4
4
|
"description": "GraphQL API generated client for VTX",
|
|
5
|
-
"
|
|
5
|
+
"types": "src/index.d.ts",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
8
|
},
|
|
@@ -10,14 +10,8 @@ export type ClientOptions = Omit<RequestInit, 'body' | 'headers'> & {
|
|
|
10
10
|
fetch?: Function;
|
|
11
11
|
headers?: Headers;
|
|
12
12
|
};
|
|
13
|
-
export declare const createClient: ({ queryRoot, mutationRoot, subscriptionRoot, ...options }:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
fetch?: Function | undefined;
|
|
18
|
-
headers?: Headers | undefined;
|
|
19
|
-
} & {
|
|
20
|
-
queryRoot?: LinkedType | undefined;
|
|
21
|
-
mutationRoot?: LinkedType | undefined;
|
|
22
|
-
subscriptionRoot?: LinkedType | undefined;
|
|
13
|
+
export declare const createClient: ({ queryRoot, mutationRoot, subscriptionRoot, ...options }: ClientOptions & {
|
|
14
|
+
queryRoot?: LinkedType;
|
|
15
|
+
mutationRoot?: LinkedType;
|
|
16
|
+
subscriptionRoot?: LinkedType;
|
|
23
17
|
}) => any;
|
package/schema.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
export type Scalars = {
|
|
2
2
|
String: string;
|
|
3
3
|
Boolean: boolean;
|
|
4
|
-
DateTime: any;
|
|
5
|
-
Float: number;
|
|
6
4
|
};
|
|
7
5
|
export interface ApiKey {
|
|
8
6
|
_id: Scalars['String'];
|
|
@@ -73,132 +71,6 @@ export interface TenantUserTokenWithInfo {
|
|
|
73
71
|
loginEmail: Scalars['String'];
|
|
74
72
|
__typename: 'TenantUserTokenWithInfo';
|
|
75
73
|
}
|
|
76
|
-
export interface Agreement {
|
|
77
|
-
_id: Scalars['String'];
|
|
78
|
-
kind: Scalars['String'];
|
|
79
|
-
domain: Scalars['String'];
|
|
80
|
-
isActiveAgreement: Scalars['Boolean'];
|
|
81
|
-
version: Scalars['String'];
|
|
82
|
-
publishedDate: (Scalars['DateTime'] | null);
|
|
83
|
-
unPublishedDate: (Scalars['DateTime'] | null);
|
|
84
|
-
locked: Scalars['Boolean'];
|
|
85
|
-
name: Scalars['String'];
|
|
86
|
-
description: (Scalars['String'] | null);
|
|
87
|
-
content: (Scalars['String'] | null);
|
|
88
|
-
createdDate: Scalars['DateTime'];
|
|
89
|
-
updatedDate: Scalars['DateTime'];
|
|
90
|
-
__typename: 'Agreement';
|
|
91
|
-
}
|
|
92
|
-
export interface BillEntity {
|
|
93
|
-
name: Scalars['String'];
|
|
94
|
-
taxId: (Scalars['String'] | null);
|
|
95
|
-
line1: (Scalars['String'] | null);
|
|
96
|
-
line2: (Scalars['String'] | null);
|
|
97
|
-
line3: (Scalars['String'] | null);
|
|
98
|
-
city: (Scalars['String'] | null);
|
|
99
|
-
state: (Scalars['String'] | null);
|
|
100
|
-
country: (Scalars['String'] | null);
|
|
101
|
-
zip: (Scalars['String'] | null);
|
|
102
|
-
__typename: 'BillEntity';
|
|
103
|
-
}
|
|
104
|
-
export interface InvoiceItem {
|
|
105
|
-
_id: Scalars['String'];
|
|
106
|
-
unitPrice: Scalars['Float'];
|
|
107
|
-
unitTax: Scalars['Float'];
|
|
108
|
-
quantity: Scalars['Float'];
|
|
109
|
-
unit: Scalars['String'];
|
|
110
|
-
itemPrice: Scalars['Float'];
|
|
111
|
-
itemTotal: Scalars['Float'];
|
|
112
|
-
__typename: 'InvoiceItem';
|
|
113
|
-
}
|
|
114
|
-
export interface Payment {
|
|
115
|
-
_id: Scalars['String'];
|
|
116
|
-
amount: Scalars['Float'];
|
|
117
|
-
currency: Scalars['String'];
|
|
118
|
-
datePaid: Scalars['DateTime'];
|
|
119
|
-
paymentComment: (Scalars['String'] | null);
|
|
120
|
-
transactionId: (Scalars['String'] | null);
|
|
121
|
-
processorType: (Scalars['String'] | null);
|
|
122
|
-
processorReference: (Scalars['String'] | null);
|
|
123
|
-
paidItemReference: (Scalars['String'] | null);
|
|
124
|
-
payeeReference: (Scalars['String'] | null);
|
|
125
|
-
payorReference: (Scalars['String'] | null);
|
|
126
|
-
paymentMethodType: (Scalars['String'] | null);
|
|
127
|
-
paymentMethodReference: (Scalars['String'] | null);
|
|
128
|
-
__typename: 'Payment';
|
|
129
|
-
}
|
|
130
|
-
export interface PlaFeature {
|
|
131
|
-
_id: Scalars['String'];
|
|
132
|
-
title: Scalars['String'];
|
|
133
|
-
description: (Scalars['String'] | null);
|
|
134
|
-
quantity: (Scalars['Float'] | null);
|
|
135
|
-
quantityUnit: (Scalars['String'] | null);
|
|
136
|
-
__typename: 'PlaFeature';
|
|
137
|
-
}
|
|
138
|
-
export interface Plan {
|
|
139
|
-
_id: Scalars['String'];
|
|
140
|
-
name: (Scalars['String'] | null);
|
|
141
|
-
description: (Scalars['String'] | null);
|
|
142
|
-
prices: PlanPrice[];
|
|
143
|
-
features: PlaFeature[];
|
|
144
|
-
isPublic: Scalars['Boolean'];
|
|
145
|
-
active: Scalars['Boolean'];
|
|
146
|
-
startOfferingDate: (Scalars['DateTime'] | null);
|
|
147
|
-
endOfferingDate: (Scalars['DateTime'] | null);
|
|
148
|
-
termsAndConditions: (Scalars['String'] | null);
|
|
149
|
-
__typename: 'Plan';
|
|
150
|
-
}
|
|
151
|
-
export interface PlanPrice {
|
|
152
|
-
_id: Scalars['String'];
|
|
153
|
-
currency: Scalars['String'];
|
|
154
|
-
price: Scalars['Float'];
|
|
155
|
-
taxMode: Scalars['String'];
|
|
156
|
-
period: Scalars['String'];
|
|
157
|
-
customDays: (Scalars['Float'] | null);
|
|
158
|
-
plan: (Plan | null);
|
|
159
|
-
__typename: 'PlanPrice';
|
|
160
|
-
}
|
|
161
|
-
export interface Invoice {
|
|
162
|
-
_id: Scalars['String'];
|
|
163
|
-
invoiceDate: Scalars['DateTime'];
|
|
164
|
-
billedEntity: BillEntity;
|
|
165
|
-
dueDate: Scalars['DateTime'];
|
|
166
|
-
billAmount: Scalars['Float'];
|
|
167
|
-
tax: Scalars['Float'];
|
|
168
|
-
total: Scalars['Float'];
|
|
169
|
-
currency: Scalars['String'];
|
|
170
|
-
items: (InvoiceItem[] | null);
|
|
171
|
-
payment: (Payment | null);
|
|
172
|
-
__typename: 'Invoice';
|
|
173
|
-
}
|
|
174
|
-
export interface SubscriptionInvoice {
|
|
175
|
-
_id: Scalars['String'];
|
|
176
|
-
invoice: Invoice;
|
|
177
|
-
billedPlan: PlanPrice;
|
|
178
|
-
subscriber: PlanSubscription;
|
|
179
|
-
__typename: 'SubscriptionInvoice';
|
|
180
|
-
}
|
|
181
|
-
export interface PlanSubscription {
|
|
182
|
-
_id: Scalars['String'];
|
|
183
|
-
currentPlan: PlanPrice;
|
|
184
|
-
billPrice: Scalars['Float'];
|
|
185
|
-
billCurrency: Scalars['String'];
|
|
186
|
-
billPriceComment: (Scalars['String'] | null);
|
|
187
|
-
lastBillDate: Scalars['DateTime'];
|
|
188
|
-
endAccessDate: Scalars['DateTime'];
|
|
189
|
-
autoRenew: Scalars['Boolean'];
|
|
190
|
-
autoRenewPlan: (PlanPrice | null);
|
|
191
|
-
autoRenewDate: Scalars['DateTime'];
|
|
192
|
-
payments: SubscriptionPayment[];
|
|
193
|
-
invoices: SubscriptionInvoice[];
|
|
194
|
-
__typename: 'PlanSubscription';
|
|
195
|
-
}
|
|
196
|
-
export interface SubscriptionPayment {
|
|
197
|
-
_id: Scalars['String'];
|
|
198
|
-
payment: Payment;
|
|
199
|
-
subscriber: PlanSubscription;
|
|
200
|
-
__typename: 'SubscriptionPayment';
|
|
201
|
-
}
|
|
202
74
|
export interface Brand {
|
|
203
75
|
_id: Scalars['String'];
|
|
204
76
|
name: Scalars['String'];
|
|
@@ -324,143 +196,6 @@ export interface TenantUserTokenWithInfoGenqlSelection {
|
|
|
324
196
|
__typename?: boolean | number;
|
|
325
197
|
__scalar?: boolean | number;
|
|
326
198
|
}
|
|
327
|
-
export interface AgreementGenqlSelection {
|
|
328
|
-
_id?: boolean | number;
|
|
329
|
-
kind?: boolean | number;
|
|
330
|
-
domain?: boolean | number;
|
|
331
|
-
isActiveAgreement?: boolean | number;
|
|
332
|
-
version?: boolean | number;
|
|
333
|
-
publishedDate?: boolean | number;
|
|
334
|
-
unPublishedDate?: boolean | number;
|
|
335
|
-
locked?: boolean | number;
|
|
336
|
-
name?: boolean | number;
|
|
337
|
-
description?: boolean | number;
|
|
338
|
-
content?: boolean | number;
|
|
339
|
-
createdDate?: boolean | number;
|
|
340
|
-
updatedDate?: boolean | number;
|
|
341
|
-
__typename?: boolean | number;
|
|
342
|
-
__scalar?: boolean | number;
|
|
343
|
-
}
|
|
344
|
-
export interface BillEntityGenqlSelection {
|
|
345
|
-
name?: boolean | number;
|
|
346
|
-
taxId?: boolean | number;
|
|
347
|
-
line1?: boolean | number;
|
|
348
|
-
line2?: boolean | number;
|
|
349
|
-
line3?: boolean | number;
|
|
350
|
-
city?: boolean | number;
|
|
351
|
-
state?: boolean | number;
|
|
352
|
-
country?: boolean | number;
|
|
353
|
-
zip?: boolean | number;
|
|
354
|
-
__typename?: boolean | number;
|
|
355
|
-
__scalar?: boolean | number;
|
|
356
|
-
}
|
|
357
|
-
export interface InvoiceItemGenqlSelection {
|
|
358
|
-
_id?: boolean | number;
|
|
359
|
-
unitPrice?: boolean | number;
|
|
360
|
-
unitTax?: boolean | number;
|
|
361
|
-
quantity?: boolean | number;
|
|
362
|
-
unit?: boolean | number;
|
|
363
|
-
itemPrice?: boolean | number;
|
|
364
|
-
itemTotal?: boolean | number;
|
|
365
|
-
__typename?: boolean | number;
|
|
366
|
-
__scalar?: boolean | number;
|
|
367
|
-
}
|
|
368
|
-
export interface PaymentGenqlSelection {
|
|
369
|
-
_id?: boolean | number;
|
|
370
|
-
amount?: boolean | number;
|
|
371
|
-
currency?: boolean | number;
|
|
372
|
-
datePaid?: boolean | number;
|
|
373
|
-
paymentComment?: boolean | number;
|
|
374
|
-
transactionId?: boolean | number;
|
|
375
|
-
processorType?: boolean | number;
|
|
376
|
-
processorReference?: boolean | number;
|
|
377
|
-
paidItemReference?: boolean | number;
|
|
378
|
-
payeeReference?: boolean | number;
|
|
379
|
-
payorReference?: boolean | number;
|
|
380
|
-
paymentMethodType?: boolean | number;
|
|
381
|
-
paymentMethodReference?: boolean | number;
|
|
382
|
-
__typename?: boolean | number;
|
|
383
|
-
__scalar?: boolean | number;
|
|
384
|
-
}
|
|
385
|
-
export interface PlaFeatureGenqlSelection {
|
|
386
|
-
_id?: boolean | number;
|
|
387
|
-
title?: boolean | number;
|
|
388
|
-
description?: boolean | number;
|
|
389
|
-
quantity?: boolean | number;
|
|
390
|
-
quantityUnit?: boolean | number;
|
|
391
|
-
__typename?: boolean | number;
|
|
392
|
-
__scalar?: boolean | number;
|
|
393
|
-
}
|
|
394
|
-
export interface PlanGenqlSelection {
|
|
395
|
-
_id?: boolean | number;
|
|
396
|
-
name?: boolean | number;
|
|
397
|
-
description?: boolean | number;
|
|
398
|
-
prices?: PlanPriceGenqlSelection;
|
|
399
|
-
features?: PlaFeatureGenqlSelection;
|
|
400
|
-
isPublic?: boolean | number;
|
|
401
|
-
active?: boolean | number;
|
|
402
|
-
startOfferingDate?: boolean | number;
|
|
403
|
-
endOfferingDate?: boolean | number;
|
|
404
|
-
termsAndConditions?: boolean | number;
|
|
405
|
-
__typename?: boolean | number;
|
|
406
|
-
__scalar?: boolean | number;
|
|
407
|
-
}
|
|
408
|
-
export interface PlanPriceGenqlSelection {
|
|
409
|
-
_id?: boolean | number;
|
|
410
|
-
currency?: boolean | number;
|
|
411
|
-
price?: boolean | number;
|
|
412
|
-
taxMode?: boolean | number;
|
|
413
|
-
period?: boolean | number;
|
|
414
|
-
customDays?: boolean | number;
|
|
415
|
-
plan?: PlanGenqlSelection;
|
|
416
|
-
__typename?: boolean | number;
|
|
417
|
-
__scalar?: boolean | number;
|
|
418
|
-
}
|
|
419
|
-
export interface InvoiceGenqlSelection {
|
|
420
|
-
_id?: boolean | number;
|
|
421
|
-
invoiceDate?: boolean | number;
|
|
422
|
-
billedEntity?: BillEntityGenqlSelection;
|
|
423
|
-
dueDate?: boolean | number;
|
|
424
|
-
billAmount?: boolean | number;
|
|
425
|
-
tax?: boolean | number;
|
|
426
|
-
total?: boolean | number;
|
|
427
|
-
currency?: boolean | number;
|
|
428
|
-
items?: InvoiceItemGenqlSelection;
|
|
429
|
-
payment?: PaymentGenqlSelection;
|
|
430
|
-
__typename?: boolean | number;
|
|
431
|
-
__scalar?: boolean | number;
|
|
432
|
-
}
|
|
433
|
-
export interface SubscriptionInvoiceGenqlSelection {
|
|
434
|
-
_id?: boolean | number;
|
|
435
|
-
invoice?: InvoiceGenqlSelection;
|
|
436
|
-
billedPlan?: PlanPriceGenqlSelection;
|
|
437
|
-
subscriber?: PlanSubscriptionGenqlSelection;
|
|
438
|
-
__typename?: boolean | number;
|
|
439
|
-
__scalar?: boolean | number;
|
|
440
|
-
}
|
|
441
|
-
export interface PlanSubscriptionGenqlSelection {
|
|
442
|
-
_id?: boolean | number;
|
|
443
|
-
currentPlan?: PlanPriceGenqlSelection;
|
|
444
|
-
billPrice?: boolean | number;
|
|
445
|
-
billCurrency?: boolean | number;
|
|
446
|
-
billPriceComment?: boolean | number;
|
|
447
|
-
lastBillDate?: boolean | number;
|
|
448
|
-
endAccessDate?: boolean | number;
|
|
449
|
-
autoRenew?: boolean | number;
|
|
450
|
-
autoRenewPlan?: PlanPriceGenqlSelection;
|
|
451
|
-
autoRenewDate?: boolean | number;
|
|
452
|
-
payments?: SubscriptionPaymentGenqlSelection;
|
|
453
|
-
invoices?: SubscriptionInvoiceGenqlSelection;
|
|
454
|
-
__typename?: boolean | number;
|
|
455
|
-
__scalar?: boolean | number;
|
|
456
|
-
}
|
|
457
|
-
export interface SubscriptionPaymentGenqlSelection {
|
|
458
|
-
_id?: boolean | number;
|
|
459
|
-
payment?: PaymentGenqlSelection;
|
|
460
|
-
subscriber?: PlanSubscriptionGenqlSelection;
|
|
461
|
-
__typename?: boolean | number;
|
|
462
|
-
__scalar?: boolean | number;
|
|
463
|
-
}
|
|
464
199
|
export interface BrandGenqlSelection {
|
|
465
200
|
_id?: boolean | number;
|
|
466
201
|
name?: boolean | number;
|
|
@@ -654,39 +389,6 @@ export declare const isTenantWithUserLogin: (obj?: {
|
|
|
654
389
|
export declare const isTenantUserTokenWithInfo: (obj?: {
|
|
655
390
|
__typename?: any;
|
|
656
391
|
} | null) => obj is TenantUserTokenWithInfo;
|
|
657
|
-
export declare const isAgreement: (obj?: {
|
|
658
|
-
__typename?: any;
|
|
659
|
-
} | null) => obj is Agreement;
|
|
660
|
-
export declare const isBillEntity: (obj?: {
|
|
661
|
-
__typename?: any;
|
|
662
|
-
} | null) => obj is BillEntity;
|
|
663
|
-
export declare const isInvoiceItem: (obj?: {
|
|
664
|
-
__typename?: any;
|
|
665
|
-
} | null) => obj is InvoiceItem;
|
|
666
|
-
export declare const isPayment: (obj?: {
|
|
667
|
-
__typename?: any;
|
|
668
|
-
} | null) => obj is Payment;
|
|
669
|
-
export declare const isPlaFeature: (obj?: {
|
|
670
|
-
__typename?: any;
|
|
671
|
-
} | null) => obj is PlaFeature;
|
|
672
|
-
export declare const isPlan: (obj?: {
|
|
673
|
-
__typename?: any;
|
|
674
|
-
} | null) => obj is Plan;
|
|
675
|
-
export declare const isPlanPrice: (obj?: {
|
|
676
|
-
__typename?: any;
|
|
677
|
-
} | null) => obj is PlanPrice;
|
|
678
|
-
export declare const isInvoice: (obj?: {
|
|
679
|
-
__typename?: any;
|
|
680
|
-
} | null) => obj is Invoice;
|
|
681
|
-
export declare const isSubscriptionInvoice: (obj?: {
|
|
682
|
-
__typename?: any;
|
|
683
|
-
} | null) => obj is SubscriptionInvoice;
|
|
684
|
-
export declare const isPlanSubscription: (obj?: {
|
|
685
|
-
__typename?: any;
|
|
686
|
-
} | null) => obj is PlanSubscription;
|
|
687
|
-
export declare const isSubscriptionPayment: (obj?: {
|
|
688
|
-
__typename?: any;
|
|
689
|
-
} | null) => obj is SubscriptionPayment;
|
|
690
392
|
export declare const isBrand: (obj?: {
|
|
691
393
|
__typename?: any;
|
|
692
394
|
} | null) => obj is Brand;
|
package/schema.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isMutation = exports.isQuery = exports.isIndustry = exports.isSponsor = exports.isBrand = exports.
|
|
3
|
+
exports.isMutation = exports.isQuery = exports.isIndustry = exports.isSponsor = exports.isBrand = exports.isTenantUserTokenWithInfo = exports.isTenantWithUserLogin = exports.isUriAvailableType = exports.isTenant = exports.isUserWithToken = exports.isUser = exports.isDomain = exports.isUserToken = exports.isApiKeyWithValue = exports.isApiKey = void 0;
|
|
4
4
|
const ApiKey_possibleTypes = ['ApiKey'];
|
|
5
5
|
const isApiKey = (obj) => {
|
|
6
6
|
if (!obj?.__typename)
|
|
@@ -71,83 +71,6 @@ const isTenantUserTokenWithInfo = (obj) => {
|
|
|
71
71
|
return TenantUserTokenWithInfo_possibleTypes.includes(obj.__typename);
|
|
72
72
|
};
|
|
73
73
|
exports.isTenantUserTokenWithInfo = isTenantUserTokenWithInfo;
|
|
74
|
-
const Agreement_possibleTypes = ['Agreement'];
|
|
75
|
-
const isAgreement = (obj) => {
|
|
76
|
-
if (!obj?.__typename)
|
|
77
|
-
throw new Error('__typename is missing in "isAgreement"');
|
|
78
|
-
return Agreement_possibleTypes.includes(obj.__typename);
|
|
79
|
-
};
|
|
80
|
-
exports.isAgreement = isAgreement;
|
|
81
|
-
const BillEntity_possibleTypes = ['BillEntity'];
|
|
82
|
-
const isBillEntity = (obj) => {
|
|
83
|
-
if (!obj?.__typename)
|
|
84
|
-
throw new Error('__typename is missing in "isBillEntity"');
|
|
85
|
-
return BillEntity_possibleTypes.includes(obj.__typename);
|
|
86
|
-
};
|
|
87
|
-
exports.isBillEntity = isBillEntity;
|
|
88
|
-
const InvoiceItem_possibleTypes = ['InvoiceItem'];
|
|
89
|
-
const isInvoiceItem = (obj) => {
|
|
90
|
-
if (!obj?.__typename)
|
|
91
|
-
throw new Error('__typename is missing in "isInvoiceItem"');
|
|
92
|
-
return InvoiceItem_possibleTypes.includes(obj.__typename);
|
|
93
|
-
};
|
|
94
|
-
exports.isInvoiceItem = isInvoiceItem;
|
|
95
|
-
const Payment_possibleTypes = ['Payment'];
|
|
96
|
-
const isPayment = (obj) => {
|
|
97
|
-
if (!obj?.__typename)
|
|
98
|
-
throw new Error('__typename is missing in "isPayment"');
|
|
99
|
-
return Payment_possibleTypes.includes(obj.__typename);
|
|
100
|
-
};
|
|
101
|
-
exports.isPayment = isPayment;
|
|
102
|
-
const PlaFeature_possibleTypes = ['PlaFeature'];
|
|
103
|
-
const isPlaFeature = (obj) => {
|
|
104
|
-
if (!obj?.__typename)
|
|
105
|
-
throw new Error('__typename is missing in "isPlaFeature"');
|
|
106
|
-
return PlaFeature_possibleTypes.includes(obj.__typename);
|
|
107
|
-
};
|
|
108
|
-
exports.isPlaFeature = isPlaFeature;
|
|
109
|
-
const Plan_possibleTypes = ['Plan'];
|
|
110
|
-
const isPlan = (obj) => {
|
|
111
|
-
if (!obj?.__typename)
|
|
112
|
-
throw new Error('__typename is missing in "isPlan"');
|
|
113
|
-
return Plan_possibleTypes.includes(obj.__typename);
|
|
114
|
-
};
|
|
115
|
-
exports.isPlan = isPlan;
|
|
116
|
-
const PlanPrice_possibleTypes = ['PlanPrice'];
|
|
117
|
-
const isPlanPrice = (obj) => {
|
|
118
|
-
if (!obj?.__typename)
|
|
119
|
-
throw new Error('__typename is missing in "isPlanPrice"');
|
|
120
|
-
return PlanPrice_possibleTypes.includes(obj.__typename);
|
|
121
|
-
};
|
|
122
|
-
exports.isPlanPrice = isPlanPrice;
|
|
123
|
-
const Invoice_possibleTypes = ['Invoice'];
|
|
124
|
-
const isInvoice = (obj) => {
|
|
125
|
-
if (!obj?.__typename)
|
|
126
|
-
throw new Error('__typename is missing in "isInvoice"');
|
|
127
|
-
return Invoice_possibleTypes.includes(obj.__typename);
|
|
128
|
-
};
|
|
129
|
-
exports.isInvoice = isInvoice;
|
|
130
|
-
const SubscriptionInvoice_possibleTypes = ['SubscriptionInvoice'];
|
|
131
|
-
const isSubscriptionInvoice = (obj) => {
|
|
132
|
-
if (!obj?.__typename)
|
|
133
|
-
throw new Error('__typename is missing in "isSubscriptionInvoice"');
|
|
134
|
-
return SubscriptionInvoice_possibleTypes.includes(obj.__typename);
|
|
135
|
-
};
|
|
136
|
-
exports.isSubscriptionInvoice = isSubscriptionInvoice;
|
|
137
|
-
const PlanSubscription_possibleTypes = ['PlanSubscription'];
|
|
138
|
-
const isPlanSubscription = (obj) => {
|
|
139
|
-
if (!obj?.__typename)
|
|
140
|
-
throw new Error('__typename is missing in "isPlanSubscription"');
|
|
141
|
-
return PlanSubscription_possibleTypes.includes(obj.__typename);
|
|
142
|
-
};
|
|
143
|
-
exports.isPlanSubscription = isPlanSubscription;
|
|
144
|
-
const SubscriptionPayment_possibleTypes = ['SubscriptionPayment'];
|
|
145
|
-
const isSubscriptionPayment = (obj) => {
|
|
146
|
-
if (!obj?.__typename)
|
|
147
|
-
throw new Error('__typename is missing in "isSubscriptionPayment"');
|
|
148
|
-
return SubscriptionPayment_possibleTypes.includes(obj.__typename);
|
|
149
|
-
};
|
|
150
|
-
exports.isSubscriptionPayment = isSubscriptionPayment;
|
|
151
74
|
const Brand_possibleTypes = ['Brand'];
|
|
152
75
|
const isBrand = (obj) => {
|
|
153
76
|
if (!obj?.__typename)
|
package/schema.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../libs/vtx-backend-client/schema.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../libs/vtx-backend-client/schema.ts"],"names":[],"mappings":";;;AA8SI,MAAM,oBAAoB,GAAa,CAAC,QAAQ,CAAC,CAAA;AAC1C,MAAM,QAAQ,GAAG,CAAC,GAAiC,EAAiB,EAAE;IAC3E,IAAI,CAAC,GAAG,EAAE,UAAU;QAAE,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAA;IAC5E,OAAO,oBAAoB,CAAC,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;AACtD,CAAC,CAAA;AAHY,QAAA,QAAQ,YAGpB;AAID,MAAM,6BAA6B,GAAa,CAAC,iBAAiB,CAAC,CAAA;AAC5D,MAAM,iBAAiB,GAAG,CAAC,GAAiC,EAA0B,EAAE;IAC7F,IAAI,CAAC,GAAG,EAAE,UAAU;QAAE,MAAM,IAAI,KAAK,CAAC,8CAA8C,CAAC,CAAA;IACrF,OAAO,6BAA6B,CAAC,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;AAC/D,CAAC,CAAA;AAHY,QAAA,iBAAiB,qBAG7B;AAID,MAAM,uBAAuB,GAAa,CAAC,WAAW,CAAC,C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,EAAmB,EAAE;IAC/E,IAAI,CAAC,GAAG,EAAE,UAAU;QAAE,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAA;IAC9E,OAAO,sBAAsB,CAAC,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;AACxD,CAAC,CAAA;AAHY,QAAA,UAAU,cAGtB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VTXServerAPI = void 0;
|
|
4
|
+
const package_json_1 = require("../../package.json");
|
|
5
|
+
class VTXServerAPI {
|
|
6
|
+
constructor() { }
|
|
7
|
+
;
|
|
8
|
+
getVersion() {
|
|
9
|
+
return package_json_1.default?.version ?? '0.0.0';
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.VTXServerAPI = VTXServerAPI;
|
|
13
|
+
//# sourceMappingURL=BaseServerApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseServerApi.js","sourceRoot":"","sources":["../../../../../libs/vtx-backend-client/src/api/BaseServerApi.ts"],"names":[],"mappings":";;;AACA,qDAAuC;AAEvC,MAAa,YAAY;IAErB,gBAAc,CAAC;IAAA,CAAC;IAEhB,UAAU;QACN,OAAO,sBAAK,EAAE,OAAO,IAAI,OAAO,CAAC;IACrC,CAAC;CAEJ;AARD,oCAQC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { QueryGenqlSelection, Query, MutationGenqlSelection, Mutation } from './schema';
|
|
2
|
+
import { type FieldsSelection, type GraphqlOperation, type ClientOptions, GenqlError } from './runtime';
|
|
3
|
+
export type { FieldsSelection } from './runtime';
|
|
4
|
+
export { GenqlError };
|
|
5
|
+
export * from './schema';
|
|
6
|
+
export interface Client {
|
|
7
|
+
query<R extends QueryGenqlSelection>(request: R & {
|
|
8
|
+
__name?: string;
|
|
9
|
+
}): Promise<FieldsSelection<Query, R>>;
|
|
10
|
+
mutation<R extends MutationGenqlSelection>(request: R & {
|
|
11
|
+
__name?: string;
|
|
12
|
+
}): Promise<FieldsSelection<Mutation, R>>;
|
|
13
|
+
}
|
|
14
|
+
export declare const createClient: (options?: ClientOptions) => Client;
|
|
15
|
+
export declare const everything: {
|
|
16
|
+
__scalar: boolean;
|
|
17
|
+
};
|
|
18
|
+
export type QueryResult<fields extends QueryGenqlSelection> = FieldsSelection<Query, fields>;
|
|
19
|
+
export declare const generateQueryOp: (fields: QueryGenqlSelection & {
|
|
20
|
+
__name?: string;
|
|
21
|
+
}) => GraphqlOperation;
|
|
22
|
+
export type MutationResult<fields extends MutationGenqlSelection> = FieldsSelection<Mutation, fields>;
|
|
23
|
+
export declare const generateMutationOp: (fields: MutationGenqlSelection & {
|
|
24
|
+
__name?: string;
|
|
25
|
+
}) => GraphqlOperation;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.generateMutationOp = exports.generateQueryOp = exports.everything = exports.createClient = exports.GenqlError = void 0;
|
|
18
|
+
const runtime_1 = require("./runtime");
|
|
19
|
+
Object.defineProperty(exports, "GenqlError", { enumerable: true, get: function () { return runtime_1.GenqlError; } });
|
|
20
|
+
const types_1 = require("./types");
|
|
21
|
+
__exportStar(require("./schema"), exports);
|
|
22
|
+
const typeMap = (0, runtime_1.linkTypeMap)(types_1.default);
|
|
23
|
+
const createClient = function (options) {
|
|
24
|
+
return (0, runtime_1.createClient)({
|
|
25
|
+
url: undefined,
|
|
26
|
+
...options,
|
|
27
|
+
queryRoot: typeMap.Query,
|
|
28
|
+
mutationRoot: typeMap.Mutation,
|
|
29
|
+
subscriptionRoot: typeMap.Subscription,
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
exports.createClient = createClient;
|
|
33
|
+
exports.everything = {
|
|
34
|
+
__scalar: true,
|
|
35
|
+
};
|
|
36
|
+
const generateQueryOp = function (fields) {
|
|
37
|
+
return (0, runtime_1.generateGraphqlOperation)('query', typeMap.Query, fields);
|
|
38
|
+
};
|
|
39
|
+
exports.generateQueryOp = generateQueryOp;
|
|
40
|
+
const generateMutationOp = function (fields) {
|
|
41
|
+
return (0, runtime_1.generateGraphqlOperation)('mutation', typeMap.Mutation, fields);
|
|
42
|
+
};
|
|
43
|
+
exports.generateMutationOp = generateMutationOp;
|
|
44
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/vtx-backend-client/src/client/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAOA,uCAQkB;AAET,2FAHP,oBAAU,OAGO;AAEnB,mCAA2B;AAC3B,2CAAwB;AACxB,MAAM,OAAO,GAAG,IAAA,qBAAW,EAAC,eAAY,CAAC,CAAA;AAYlC,MAAM,YAAY,GAAG,UAAU,OAAuB;IAC3D,OAAO,IAAA,sBAAoB,EAAC;QAC1B,GAAG,EAAE,SAAS;QAEd,GAAG,OAAO;QACV,SAAS,EAAE,OAAO,CAAC,KAAM;QACzB,YAAY,EAAE,OAAO,CAAC,QAAS;QAC/B,gBAAgB,EAAE,OAAO,CAAC,YAAa;KACxC,CAAQ,CAAA;AACX,CAAC,CAAA;AATY,QAAA,YAAY,gBASxB;AAEY,QAAA,UAAU,GAAG;IACxB,QAAQ,EAAE,IAAI;CACf,CAAA;AAMM,MAAM,eAAe,GAEJ,UAAU,MAAM;IACtC,OAAO,IAAA,kCAAwB,EAAC,OAAO,EAAE,OAAO,CAAC,KAAM,EAAE,MAAa,CAAC,CAAA;AACzE,CAAC,CAAA;AAJY,QAAA,eAAe,mBAI3B;AAIM,MAAM,kBAAkB,GAEP,UAAU,MAAM;IACtC,OAAO,IAAA,kCAAwB,EAAC,UAAU,EAAE,OAAO,CAAC,QAAS,EAAE,MAAa,CAAC,CAAA;AAC/E,CAAC,CAAA;AAJY,QAAA,kBAAkB,sBAI9B"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { GraphqlOperation } from './generateGraphqlOperation';
|
|
2
|
+
type Variables = Record<string, any>;
|
|
3
|
+
type QueryError = Error & {
|
|
4
|
+
message: string;
|
|
5
|
+
locations?: Array<{
|
|
6
|
+
line: number;
|
|
7
|
+
column: number;
|
|
8
|
+
}>;
|
|
9
|
+
path?: any;
|
|
10
|
+
rid: string;
|
|
11
|
+
details?: Record<string, any>;
|
|
12
|
+
};
|
|
13
|
+
type Result = {
|
|
14
|
+
data: Record<string, any>;
|
|
15
|
+
errors: Array<QueryError>;
|
|
16
|
+
};
|
|
17
|
+
type Fetcher = (batchedQuery: GraphqlOperation | Array<GraphqlOperation>) => Promise<Array<Result>>;
|
|
18
|
+
type Options = {
|
|
19
|
+
batchInterval?: number;
|
|
20
|
+
shouldBatch?: boolean;
|
|
21
|
+
maxBatchSize?: number;
|
|
22
|
+
};
|
|
23
|
+
type Queue = Array<{
|
|
24
|
+
request: GraphqlOperation;
|
|
25
|
+
resolve: (...args: Array<any>) => any;
|
|
26
|
+
reject: (...args: Array<any>) => any;
|
|
27
|
+
}>;
|
|
28
|
+
export declare class QueryBatcher {
|
|
29
|
+
fetcher: Fetcher;
|
|
30
|
+
_options: Options;
|
|
31
|
+
_queue: Queue;
|
|
32
|
+
constructor(fetcher: Fetcher, { batchInterval, shouldBatch, maxBatchSize, }?: Options);
|
|
33
|
+
fetch(query: string, variables?: Variables, operationName?: string, overrides?: Options): Promise<Result>;
|
|
34
|
+
forceFetch(query: string, variables?: Variables, operationName?: string, overrides?: Options): Promise<Result>;
|
|
35
|
+
}
|
|
36
|
+
export {};
|