@vertikalx/vtx-backend-client 1.0.0-dev.2 → 1.0.0-dev.3
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 +1 -1
- package/schema.d.ts +298 -0
- package/schema.graphql +131 -0
- package/schema.js +78 -1
- package/schema.js.map +1 -1
- package/schema.ts +375 -0
- package/tsconfig.lib.tsbuildinfo +1 -1
- package/types.d.ts +128 -0
- package/types.js +356 -18
- package/types.js.map +1 -1
- package/types.ts +356 -18
package/package.json
CHANGED
package/schema.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export type Scalars = {
|
|
2
2
|
String: string;
|
|
3
3
|
Boolean: boolean;
|
|
4
|
+
DateTime: any;
|
|
5
|
+
Float: number;
|
|
4
6
|
};
|
|
5
7
|
export interface ApiKey {
|
|
6
8
|
_id: Scalars['String'];
|
|
@@ -71,6 +73,132 @@ export interface TenantUserTokenWithInfo {
|
|
|
71
73
|
loginEmail: Scalars['String'];
|
|
72
74
|
__typename: 'TenantUserTokenWithInfo';
|
|
73
75
|
}
|
|
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
|
+
}
|
|
74
202
|
export interface Brand {
|
|
75
203
|
_id: Scalars['String'];
|
|
76
204
|
name: Scalars['String'];
|
|
@@ -196,6 +324,143 @@ export interface TenantUserTokenWithInfoGenqlSelection {
|
|
|
196
324
|
__typename?: boolean | number;
|
|
197
325
|
__scalar?: boolean | number;
|
|
198
326
|
}
|
|
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
|
+
}
|
|
199
464
|
export interface BrandGenqlSelection {
|
|
200
465
|
_id?: boolean | number;
|
|
201
466
|
name?: boolean | number;
|
|
@@ -389,6 +654,39 @@ export declare const isTenantWithUserLogin: (obj?: {
|
|
|
389
654
|
export declare const isTenantUserTokenWithInfo: (obj?: {
|
|
390
655
|
__typename?: any;
|
|
391
656
|
} | 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;
|
|
392
690
|
export declare const isBrand: (obj?: {
|
|
393
691
|
__typename?: any;
|
|
394
692
|
} | null) => obj is Brand;
|
package/schema.graphql
CHANGED
|
@@ -67,6 +67,137 @@ type TenantUserTokenWithInfo {
|
|
|
67
67
|
loginEmail: String!
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
+
type Agreement {
|
|
71
|
+
_id: String!
|
|
72
|
+
kind: String!
|
|
73
|
+
domain: String!
|
|
74
|
+
isActiveAgreement: Boolean!
|
|
75
|
+
version: String!
|
|
76
|
+
publishedDate: DateTime
|
|
77
|
+
unPublishedDate: DateTime
|
|
78
|
+
locked: Boolean!
|
|
79
|
+
name: String!
|
|
80
|
+
description: String
|
|
81
|
+
content: String
|
|
82
|
+
createdDate: DateTime!
|
|
83
|
+
updatedDate: DateTime!
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
"""
|
|
87
|
+
A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.
|
|
88
|
+
"""
|
|
89
|
+
scalar DateTime
|
|
90
|
+
|
|
91
|
+
type BillEntity {
|
|
92
|
+
name: String!
|
|
93
|
+
taxId: String
|
|
94
|
+
line1: String
|
|
95
|
+
line2: String
|
|
96
|
+
line3: String
|
|
97
|
+
city: String
|
|
98
|
+
state: String
|
|
99
|
+
country: String
|
|
100
|
+
zip: String
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
type InvoiceItem {
|
|
104
|
+
_id: String!
|
|
105
|
+
unitPrice: Float!
|
|
106
|
+
unitTax: Float!
|
|
107
|
+
quantity: Float!
|
|
108
|
+
unit: String!
|
|
109
|
+
itemPrice: Float!
|
|
110
|
+
itemTotal: Float!
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
type Payment {
|
|
114
|
+
_id: String!
|
|
115
|
+
amount: Float!
|
|
116
|
+
currency: String!
|
|
117
|
+
datePaid: DateTime!
|
|
118
|
+
paymentComment: String
|
|
119
|
+
transactionId: String
|
|
120
|
+
processorType: String
|
|
121
|
+
processorReference: String
|
|
122
|
+
paidItemReference: String
|
|
123
|
+
payeeReference: String
|
|
124
|
+
payorReference: String
|
|
125
|
+
paymentMethodType: String
|
|
126
|
+
paymentMethodReference: String
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
type PlaFeature {
|
|
130
|
+
_id: String!
|
|
131
|
+
title: String!
|
|
132
|
+
description: String
|
|
133
|
+
quantity: Float
|
|
134
|
+
quantityUnit: String
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
type Plan {
|
|
138
|
+
_id: String!
|
|
139
|
+
name: String
|
|
140
|
+
description: String
|
|
141
|
+
prices: [PlanPrice!]!
|
|
142
|
+
features: [PlaFeature!]!
|
|
143
|
+
isPublic: Boolean!
|
|
144
|
+
active: Boolean!
|
|
145
|
+
startOfferingDate: DateTime
|
|
146
|
+
endOfferingDate: DateTime
|
|
147
|
+
termsAndConditions: String
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
type PlanPrice {
|
|
151
|
+
_id: String!
|
|
152
|
+
currency: String!
|
|
153
|
+
price: Float!
|
|
154
|
+
taxMode: String!
|
|
155
|
+
period: String!
|
|
156
|
+
customDays: Float
|
|
157
|
+
plan: Plan
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
type Invoice {
|
|
161
|
+
_id: String!
|
|
162
|
+
invoiceDate: DateTime!
|
|
163
|
+
billedEntity: BillEntity!
|
|
164
|
+
dueDate: DateTime!
|
|
165
|
+
billAmount: Float!
|
|
166
|
+
tax: Float!
|
|
167
|
+
total: Float!
|
|
168
|
+
currency: String!
|
|
169
|
+
items: [InvoiceItem!]
|
|
170
|
+
payment: Payment
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
type SubscriptionInvoice {
|
|
174
|
+
_id: String!
|
|
175
|
+
invoice: Invoice!
|
|
176
|
+
billedPlan: PlanPrice!
|
|
177
|
+
subscriber: PlanSubscription!
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
type PlanSubscription {
|
|
181
|
+
_id: String!
|
|
182
|
+
currentPlan: PlanPrice!
|
|
183
|
+
billPrice: Float!
|
|
184
|
+
billCurrency: String!
|
|
185
|
+
billPriceComment: String
|
|
186
|
+
lastBillDate: DateTime!
|
|
187
|
+
endAccessDate: DateTime!
|
|
188
|
+
autoRenew: Boolean!
|
|
189
|
+
autoRenewPlan: PlanPrice
|
|
190
|
+
autoRenewDate: DateTime!
|
|
191
|
+
payments: [SubscriptionPayment!]!
|
|
192
|
+
invoices: [SubscriptionInvoice!]!
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
type SubscriptionPayment {
|
|
196
|
+
_id: String!
|
|
197
|
+
payment: Payment!
|
|
198
|
+
subscriber: PlanSubscription!
|
|
199
|
+
}
|
|
200
|
+
|
|
70
201
|
type Brand {
|
|
71
202
|
_id: String!
|
|
72
203
|
name: String!
|
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.isTenantUserTokenWithInfo = exports.isTenantWithUserLogin = exports.isUriAvailableType = exports.isTenant = exports.isUserWithToken = exports.isUser = exports.isDomain = exports.isUserToken = exports.isApiKeyWithValue = exports.isApiKey = void 0;
|
|
3
|
+
exports.isMutation = exports.isQuery = exports.isIndustry = exports.isSponsor = exports.isBrand = exports.isSubscriptionPayment = exports.isPlanSubscription = exports.isSubscriptionInvoice = exports.isInvoice = exports.isPlanPrice = exports.isPlan = exports.isPlaFeature = exports.isPayment = exports.isInvoiceItem = exports.isBillEntity = exports.isAgreement = 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,6 +71,83 @@ 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;
|
|
74
151
|
const Brand_possibleTypes = ['Brand'];
|
|
75
152
|
const isBrand = (obj) => {
|
|
76
153
|
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":";;;AA6kBI,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,CAAA;AAChD,MAAM,WAAW,GAAG,CAAC,GAAiC,EAAoB,EAAE;IACjF,IAAI,CAAC,GAAG,EAAE,UAAU;QAAE,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAA;IAC/E,OAAO,uBAAuB,CAAC,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;AACzD,CAAC,CAAA;AAHY,QAAA,WAAW,eAGvB;AAID,MAAM,oBAAoB,GAAa,CAAC,QAAQ,CAAC,CAAA;AAC1C,MAAM,QAAQ,GA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