@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/schema.ts CHANGED
@@ -6,6 +6,8 @@
6
6
  export type Scalars = {
7
7
  String: string,
8
8
  Boolean: boolean,
9
+ DateTime: any,
10
+ Float: number,
9
11
  }
10
12
 
11
13
  export interface ApiKey {
@@ -87,6 +89,143 @@ export interface TenantUserTokenWithInfo {
87
89
  __typename: 'TenantUserTokenWithInfo'
88
90
  }
89
91
 
92
+ export interface Agreement {
93
+ _id: Scalars['String']
94
+ kind: Scalars['String']
95
+ domain: Scalars['String']
96
+ isActiveAgreement: Scalars['Boolean']
97
+ version: Scalars['String']
98
+ publishedDate: (Scalars['DateTime'] | null)
99
+ unPublishedDate: (Scalars['DateTime'] | null)
100
+ locked: Scalars['Boolean']
101
+ name: Scalars['String']
102
+ description: (Scalars['String'] | null)
103
+ content: (Scalars['String'] | null)
104
+ createdDate: Scalars['DateTime']
105
+ updatedDate: Scalars['DateTime']
106
+ __typename: 'Agreement'
107
+ }
108
+
109
+ export interface BillEntity {
110
+ name: Scalars['String']
111
+ taxId: (Scalars['String'] | null)
112
+ line1: (Scalars['String'] | null)
113
+ line2: (Scalars['String'] | null)
114
+ line3: (Scalars['String'] | null)
115
+ city: (Scalars['String'] | null)
116
+ state: (Scalars['String'] | null)
117
+ country: (Scalars['String'] | null)
118
+ zip: (Scalars['String'] | null)
119
+ __typename: 'BillEntity'
120
+ }
121
+
122
+ export interface InvoiceItem {
123
+ _id: Scalars['String']
124
+ unitPrice: Scalars['Float']
125
+ unitTax: Scalars['Float']
126
+ quantity: Scalars['Float']
127
+ unit: Scalars['String']
128
+ itemPrice: Scalars['Float']
129
+ itemTotal: Scalars['Float']
130
+ __typename: 'InvoiceItem'
131
+ }
132
+
133
+ export interface Payment {
134
+ _id: Scalars['String']
135
+ amount: Scalars['Float']
136
+ currency: Scalars['String']
137
+ datePaid: Scalars['DateTime']
138
+ paymentComment: (Scalars['String'] | null)
139
+ transactionId: (Scalars['String'] | null)
140
+ processorType: (Scalars['String'] | null)
141
+ processorReference: (Scalars['String'] | null)
142
+ paidItemReference: (Scalars['String'] | null)
143
+ payeeReference: (Scalars['String'] | null)
144
+ payorReference: (Scalars['String'] | null)
145
+ paymentMethodType: (Scalars['String'] | null)
146
+ paymentMethodReference: (Scalars['String'] | null)
147
+ __typename: 'Payment'
148
+ }
149
+
150
+ export interface PlaFeature {
151
+ _id: Scalars['String']
152
+ title: Scalars['String']
153
+ description: (Scalars['String'] | null)
154
+ quantity: (Scalars['Float'] | null)
155
+ quantityUnit: (Scalars['String'] | null)
156
+ __typename: 'PlaFeature'
157
+ }
158
+
159
+ export interface Plan {
160
+ _id: Scalars['String']
161
+ name: (Scalars['String'] | null)
162
+ description: (Scalars['String'] | null)
163
+ prices: PlanPrice[]
164
+ features: PlaFeature[]
165
+ isPublic: Scalars['Boolean']
166
+ active: Scalars['Boolean']
167
+ startOfferingDate: (Scalars['DateTime'] | null)
168
+ endOfferingDate: (Scalars['DateTime'] | null)
169
+ termsAndConditions: (Scalars['String'] | null)
170
+ __typename: 'Plan'
171
+ }
172
+
173
+ export interface PlanPrice {
174
+ _id: Scalars['String']
175
+ currency: Scalars['String']
176
+ price: Scalars['Float']
177
+ taxMode: Scalars['String']
178
+ period: Scalars['String']
179
+ customDays: (Scalars['Float'] | null)
180
+ plan: (Plan | null)
181
+ __typename: 'PlanPrice'
182
+ }
183
+
184
+ export interface Invoice {
185
+ _id: Scalars['String']
186
+ invoiceDate: Scalars['DateTime']
187
+ billedEntity: BillEntity
188
+ dueDate: Scalars['DateTime']
189
+ billAmount: Scalars['Float']
190
+ tax: Scalars['Float']
191
+ total: Scalars['Float']
192
+ currency: Scalars['String']
193
+ items: (InvoiceItem[] | null)
194
+ payment: (Payment | null)
195
+ __typename: 'Invoice'
196
+ }
197
+
198
+ export interface SubscriptionInvoice {
199
+ _id: Scalars['String']
200
+ invoice: Invoice
201
+ billedPlan: PlanPrice
202
+ subscriber: PlanSubscription
203
+ __typename: 'SubscriptionInvoice'
204
+ }
205
+
206
+ export interface PlanSubscription {
207
+ _id: Scalars['String']
208
+ currentPlan: PlanPrice
209
+ billPrice: Scalars['Float']
210
+ billCurrency: Scalars['String']
211
+ billPriceComment: (Scalars['String'] | null)
212
+ lastBillDate: Scalars['DateTime']
213
+ endAccessDate: Scalars['DateTime']
214
+ autoRenew: Scalars['Boolean']
215
+ autoRenewPlan: (PlanPrice | null)
216
+ autoRenewDate: Scalars['DateTime']
217
+ payments: SubscriptionPayment[]
218
+ invoices: SubscriptionInvoice[]
219
+ __typename: 'PlanSubscription'
220
+ }
221
+
222
+ export interface SubscriptionPayment {
223
+ _id: Scalars['String']
224
+ payment: Payment
225
+ subscriber: PlanSubscription
226
+ __typename: 'SubscriptionPayment'
227
+ }
228
+
90
229
  export interface Brand {
91
230
  _id: Scalars['String']
92
231
  name: Scalars['String']
@@ -227,6 +366,154 @@ export interface TenantUserTokenWithInfoGenqlSelection{
227
366
  __scalar?: boolean | number
228
367
  }
229
368
 
369
+ export interface AgreementGenqlSelection{
370
+ _id?: boolean | number
371
+ kind?: boolean | number
372
+ domain?: boolean | number
373
+ isActiveAgreement?: boolean | number
374
+ version?: boolean | number
375
+ publishedDate?: boolean | number
376
+ unPublishedDate?: boolean | number
377
+ locked?: boolean | number
378
+ name?: boolean | number
379
+ description?: boolean | number
380
+ content?: boolean | number
381
+ createdDate?: boolean | number
382
+ updatedDate?: boolean | number
383
+ __typename?: boolean | number
384
+ __scalar?: boolean | number
385
+ }
386
+
387
+ export interface BillEntityGenqlSelection{
388
+ name?: boolean | number
389
+ taxId?: boolean | number
390
+ line1?: boolean | number
391
+ line2?: boolean | number
392
+ line3?: boolean | number
393
+ city?: boolean | number
394
+ state?: boolean | number
395
+ country?: boolean | number
396
+ zip?: boolean | number
397
+ __typename?: boolean | number
398
+ __scalar?: boolean | number
399
+ }
400
+
401
+ export interface InvoiceItemGenqlSelection{
402
+ _id?: boolean | number
403
+ unitPrice?: boolean | number
404
+ unitTax?: boolean | number
405
+ quantity?: boolean | number
406
+ unit?: boolean | number
407
+ itemPrice?: boolean | number
408
+ itemTotal?: boolean | number
409
+ __typename?: boolean | number
410
+ __scalar?: boolean | number
411
+ }
412
+
413
+ export interface PaymentGenqlSelection{
414
+ _id?: boolean | number
415
+ amount?: boolean | number
416
+ currency?: boolean | number
417
+ datePaid?: boolean | number
418
+ paymentComment?: boolean | number
419
+ transactionId?: boolean | number
420
+ processorType?: boolean | number
421
+ processorReference?: boolean | number
422
+ paidItemReference?: boolean | number
423
+ payeeReference?: boolean | number
424
+ payorReference?: boolean | number
425
+ paymentMethodType?: boolean | number
426
+ paymentMethodReference?: boolean | number
427
+ __typename?: boolean | number
428
+ __scalar?: boolean | number
429
+ }
430
+
431
+ export interface PlaFeatureGenqlSelection{
432
+ _id?: boolean | number
433
+ title?: boolean | number
434
+ description?: boolean | number
435
+ quantity?: boolean | number
436
+ quantityUnit?: boolean | number
437
+ __typename?: boolean | number
438
+ __scalar?: boolean | number
439
+ }
440
+
441
+ export interface PlanGenqlSelection{
442
+ _id?: boolean | number
443
+ name?: boolean | number
444
+ description?: boolean | number
445
+ prices?: PlanPriceGenqlSelection
446
+ features?: PlaFeatureGenqlSelection
447
+ isPublic?: boolean | number
448
+ active?: boolean | number
449
+ startOfferingDate?: boolean | number
450
+ endOfferingDate?: boolean | number
451
+ termsAndConditions?: boolean | number
452
+ __typename?: boolean | number
453
+ __scalar?: boolean | number
454
+ }
455
+
456
+ export interface PlanPriceGenqlSelection{
457
+ _id?: boolean | number
458
+ currency?: boolean | number
459
+ price?: boolean | number
460
+ taxMode?: boolean | number
461
+ period?: boolean | number
462
+ customDays?: boolean | number
463
+ plan?: PlanGenqlSelection
464
+ __typename?: boolean | number
465
+ __scalar?: boolean | number
466
+ }
467
+
468
+ export interface InvoiceGenqlSelection{
469
+ _id?: boolean | number
470
+ invoiceDate?: boolean | number
471
+ billedEntity?: BillEntityGenqlSelection
472
+ dueDate?: boolean | number
473
+ billAmount?: boolean | number
474
+ tax?: boolean | number
475
+ total?: boolean | number
476
+ currency?: boolean | number
477
+ items?: InvoiceItemGenqlSelection
478
+ payment?: PaymentGenqlSelection
479
+ __typename?: boolean | number
480
+ __scalar?: boolean | number
481
+ }
482
+
483
+ export interface SubscriptionInvoiceGenqlSelection{
484
+ _id?: boolean | number
485
+ invoice?: InvoiceGenqlSelection
486
+ billedPlan?: PlanPriceGenqlSelection
487
+ subscriber?: PlanSubscriptionGenqlSelection
488
+ __typename?: boolean | number
489
+ __scalar?: boolean | number
490
+ }
491
+
492
+ export interface PlanSubscriptionGenqlSelection{
493
+ _id?: boolean | number
494
+ currentPlan?: PlanPriceGenqlSelection
495
+ billPrice?: boolean | number
496
+ billCurrency?: boolean | number
497
+ billPriceComment?: boolean | number
498
+ lastBillDate?: boolean | number
499
+ endAccessDate?: boolean | number
500
+ autoRenew?: boolean | number
501
+ autoRenewPlan?: PlanPriceGenqlSelection
502
+ autoRenewDate?: boolean | number
503
+ payments?: SubscriptionPaymentGenqlSelection
504
+ invoices?: SubscriptionInvoiceGenqlSelection
505
+ __typename?: boolean | number
506
+ __scalar?: boolean | number
507
+ }
508
+
509
+ export interface SubscriptionPaymentGenqlSelection{
510
+ _id?: boolean | number
511
+ payment?: PaymentGenqlSelection
512
+ subscriber?: PlanSubscriptionGenqlSelection
513
+ __typename?: boolean | number
514
+ __scalar?: boolean | number
515
+ }
516
+
230
517
  export interface BrandGenqlSelection{
231
518
  _id?: boolean | number
232
519
  name?: boolean | number
@@ -380,6 +667,94 @@ export interface RegisterSponsorInput {name: Scalars['String'],phone?: (Scalars[
380
667
 
381
668
 
382
669
 
670
+ const Agreement_possibleTypes: string[] = ['Agreement']
671
+ export const isAgreement = (obj?: { __typename?: any } | null): obj is Agreement => {
672
+ if (!obj?.__typename) throw new Error('__typename is missing in "isAgreement"')
673
+ return Agreement_possibleTypes.includes(obj.__typename)
674
+ }
675
+
676
+
677
+
678
+ const BillEntity_possibleTypes: string[] = ['BillEntity']
679
+ export const isBillEntity = (obj?: { __typename?: any } | null): obj is BillEntity => {
680
+ if (!obj?.__typename) throw new Error('__typename is missing in "isBillEntity"')
681
+ return BillEntity_possibleTypes.includes(obj.__typename)
682
+ }
683
+
684
+
685
+
686
+ const InvoiceItem_possibleTypes: string[] = ['InvoiceItem']
687
+ export const isInvoiceItem = (obj?: { __typename?: any } | null): obj is InvoiceItem => {
688
+ if (!obj?.__typename) throw new Error('__typename is missing in "isInvoiceItem"')
689
+ return InvoiceItem_possibleTypes.includes(obj.__typename)
690
+ }
691
+
692
+
693
+
694
+ const Payment_possibleTypes: string[] = ['Payment']
695
+ export const isPayment = (obj?: { __typename?: any } | null): obj is Payment => {
696
+ if (!obj?.__typename) throw new Error('__typename is missing in "isPayment"')
697
+ return Payment_possibleTypes.includes(obj.__typename)
698
+ }
699
+
700
+
701
+
702
+ const PlaFeature_possibleTypes: string[] = ['PlaFeature']
703
+ export const isPlaFeature = (obj?: { __typename?: any } | null): obj is PlaFeature => {
704
+ if (!obj?.__typename) throw new Error('__typename is missing in "isPlaFeature"')
705
+ return PlaFeature_possibleTypes.includes(obj.__typename)
706
+ }
707
+
708
+
709
+
710
+ const Plan_possibleTypes: string[] = ['Plan']
711
+ export const isPlan = (obj?: { __typename?: any } | null): obj is Plan => {
712
+ if (!obj?.__typename) throw new Error('__typename is missing in "isPlan"')
713
+ return Plan_possibleTypes.includes(obj.__typename)
714
+ }
715
+
716
+
717
+
718
+ const PlanPrice_possibleTypes: string[] = ['PlanPrice']
719
+ export const isPlanPrice = (obj?: { __typename?: any } | null): obj is PlanPrice => {
720
+ if (!obj?.__typename) throw new Error('__typename is missing in "isPlanPrice"')
721
+ return PlanPrice_possibleTypes.includes(obj.__typename)
722
+ }
723
+
724
+
725
+
726
+ const Invoice_possibleTypes: string[] = ['Invoice']
727
+ export const isInvoice = (obj?: { __typename?: any } | null): obj is Invoice => {
728
+ if (!obj?.__typename) throw new Error('__typename is missing in "isInvoice"')
729
+ return Invoice_possibleTypes.includes(obj.__typename)
730
+ }
731
+
732
+
733
+
734
+ const SubscriptionInvoice_possibleTypes: string[] = ['SubscriptionInvoice']
735
+ export const isSubscriptionInvoice = (obj?: { __typename?: any } | null): obj is SubscriptionInvoice => {
736
+ if (!obj?.__typename) throw new Error('__typename is missing in "isSubscriptionInvoice"')
737
+ return SubscriptionInvoice_possibleTypes.includes(obj.__typename)
738
+ }
739
+
740
+
741
+
742
+ const PlanSubscription_possibleTypes: string[] = ['PlanSubscription']
743
+ export const isPlanSubscription = (obj?: { __typename?: any } | null): obj is PlanSubscription => {
744
+ if (!obj?.__typename) throw new Error('__typename is missing in "isPlanSubscription"')
745
+ return PlanSubscription_possibleTypes.includes(obj.__typename)
746
+ }
747
+
748
+
749
+
750
+ const SubscriptionPayment_possibleTypes: string[] = ['SubscriptionPayment']
751
+ export const isSubscriptionPayment = (obj?: { __typename?: any } | null): obj is SubscriptionPayment => {
752
+ if (!obj?.__typename) throw new Error('__typename is missing in "isSubscriptionPayment"')
753
+ return SubscriptionPayment_possibleTypes.includes(obj.__typename)
754
+ }
755
+
756
+
757
+
383
758
  const Brand_possibleTypes: string[] = ['Brand']
384
759
  export const isBrand = (obj?: { __typename?: any } | null): obj is Brand => {
385
760
  if (!obj?.__typename) throw new Error('__typename is missing in "isBrand"')