@autofleet/element-pay 1.1.1 → 1.1.3-dev.0

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/lib/index.d.cts CHANGED
@@ -1,13 +1,14 @@
1
1
  import { GraphQLClient, RequestOptions } from "graphql-request";
2
2
  import { FuelSupplier } from "@autofleet/common-types/lib/pit-stop";
3
3
 
4
- //#region src/generated/sdk.d.ts
5
- type Maybe<T> = T | null;
6
- type InputMaybe<T> = Maybe<T>;
7
- type Exact<T extends Record<string, unknown>> = { [K in keyof T]: T[K] };
8
- type GraphQLClientRequestHeaders = RequestOptions["requestHeaders"];
9
- /** All built-in and custom scalars, mapped to their actual values */
10
- interface Scalars {
4
+ //#region src/generated/int/sdk.d.ts
5
+ type Maybe$2<T> = T | null;
6
+ type InputMaybe$2<T> = Maybe$2<T>;
7
+ type Exact$2<T extends {
8
+ [key: string]: unknown;
9
+ }> = { [K in keyof T]: T[K] };
10
+ type GraphQLClientRequestHeaders$2 = RequestOptions['requestHeaders'];
11
+ type Scalars$2 = {
11
12
  ID: {
12
13
  input: string;
13
14
  output: string;
@@ -36,71 +37,1324 @@ interface Scalars {
36
37
  input: any;
37
38
  output: any;
38
39
  };
40
+ };
41
+ declare enum AccountType {
42
+ Credit = "CREDIT",
43
+ PrePaid = "PRE_PAID",
39
44
  }
40
- /** The address provided as an input when creating an organization. */
41
- interface AddressInput {
42
- city: Scalars["String"]["input"];
43
- country: Scalars["String"]["input"];
44
- line1: Scalars["String"]["input"];
45
- line2?: InputMaybe<Scalars["String"]["input"]>;
46
- state: Scalars["String"]["input"];
47
- zip: Scalars["String"]["input"];
48
- }
49
- interface EntityCreateInput {
50
- /** Description of the entity. */
51
- description?: InputMaybe<Scalars["String"]["input"]>;
52
- /** To optionally store your own id to map between different systems. */
53
- externalId?: InputMaybe<Scalars["String"]["input"]>;
54
- /** How the account is funded: ACH or Parent. */
55
- funding?: InputMaybe<FundingSource>;
56
- /** Deprecated method for creating a credit account. */
57
- hasFinance?: InputMaybe<Scalars["Boolean"]["input"]>;
58
- /** Name of the entity. */
59
- name: Scalars["String"]["input"];
60
- /** Organization Id this entity belongs to. */
61
- organizationId?: InputMaybe<Scalars["ID"]["input"]>;
62
- /** ID of parent entity, if there is one. */
63
- parentId?: InputMaybe<Scalars["ID"]["input"]>;
45
+ type AdditionalInfoInput$1 = {
46
+ contactPhoneNumber?: InputMaybe$2<Scalars$2['String']['input']>;
47
+ isCorporatePhone?: InputMaybe$2<Scalars$2['Boolean']['input']>;
48
+ };
49
+ type AddressInput$2 = {
50
+ city: Scalars$2['String']['input'];
51
+ country: Scalars$2['String']['input'];
52
+ line1: Scalars$2['String']['input'];
53
+ line2?: InputMaybe$2<Scalars$2['String']['input']>;
54
+ state: Scalars$2['String']['input'];
55
+ zip: Scalars$2['String']['input'];
56
+ };
57
+ type ApiKeyCreateInput$2 = {
58
+ entityId?: InputMaybe$2<Scalars$2['ID']['input']>;
59
+ name: Scalars$2['String']['input'];
60
+ organizationId: Scalars$2['ID']['input'];
61
+ };
62
+ declare enum CardNetwork$2 {
63
+ Mastercard = "MASTERCARD",
64
+ Visa = "VISA",
65
+ }
66
+ type ClientOnboardInput = {
67
+ address: AddressInput$2;
68
+ checkLocationOverride?: InputMaybe$2<Scalars$2['Boolean']['input']>;
69
+ costFactorEnabled?: InputMaybe$2<Scalars$2['Boolean']['input']>;
70
+ email?: InputMaybe$2<Scalars$2['String']['input']>;
71
+ externalId: Scalars$2['String']['input'];
72
+ integratorId?: InputMaybe$2<Scalars$2['ID']['input']>;
73
+ name: Scalars$2['String']['input'];
74
+ onboardedBy?: InputMaybe$2<Scalars$2['String']['input']>;
75
+ taxId?: InputMaybe$2<Scalars$2['String']['input']>;
76
+ unitsId?: InputMaybe$2<Scalars$2['String']['input']>;
77
+ useTspMetadata?: InputMaybe$2<Scalars$2['Boolean']['input']>;
78
+ };
79
+ declare enum DigitalWallet$2 {
80
+ DigitalWalletAndroid = "DIGITAL_WALLET_ANDROID",
81
+ DigitalWalletApple = "DIGITAL_WALLET_APPLE",
82
+ }
83
+ type EntityCreateInput$2 = {
84
+ description?: InputMaybe$2<Scalars$2['String']['input']>;
85
+ externalId?: InputMaybe$2<Scalars$2['String']['input']>;
86
+ funding?: InputMaybe$2<FundingSource$2>;
87
+ hasFinance?: InputMaybe$2<Scalars$2['Boolean']['input']>;
88
+ name: Scalars$2['String']['input'];
89
+ organizationId?: InputMaybe$2<Scalars$2['ID']['input']>;
90
+ parentId?: InputMaybe$2<Scalars$2['ID']['input']>;
91
+ };
92
+ type FuelRestrictionsInput$2 = {
93
+ amountPerDay?: InputMaybe$2<Scalars$2['String']['input']>;
94
+ amountPerTransaction?: InputMaybe$2<Scalars$2['String']['input']>;
95
+ checkLocation?: InputMaybe$2<Scalars$2['Boolean']['input']>;
96
+ daysOfWeek?: InputMaybe$2<PurchaseDaysOfWeekInput$2>;
97
+ hours?: InputMaybe$2<PurchaseTimeRangeInput$2>;
98
+ isEnabled?: InputMaybe$2<Scalars$2['Boolean']['input']>;
99
+ noOfTransactions?: InputMaybe$2<Scalars$2['Int']['input']>;
100
+ };
101
+ declare enum FundingSource$2 {
102
+ Ach = "ACH",
103
+ Parent = "PARENT",
104
+ Unknown = "UNKNOWN",
105
+ }
106
+ type HashMapInput$2 = {
107
+ key: Scalars$2['String']['input'];
108
+ value: Scalars$2['String']['input'];
109
+ };
110
+ declare enum JobCodeEntryOptionEnum$2 {
111
+ Freeform = "FREEFORM",
112
+ Predefined = "PREDEFINED",
113
+ }
114
+ declare enum LoginType$2 {
115
+ Email = "EMAIL",
116
+ Phone = "PHONE",
117
+ Unknown = "UNKNOWN",
118
+ }
119
+ type MachineTokenizeUserInput$2 = {
120
+ email?: InputMaybe$2<Scalars$2['String']['input']>;
121
+ externalId: Scalars$2['String']['input'];
122
+ firstName?: InputMaybe$2<Scalars$2['String']['input']>;
123
+ lastName?: InputMaybe$2<Scalars$2['String']['input']>;
124
+ organizationId: Scalars$2['ID']['input'];
125
+ phoneNumber?: InputMaybe$2<Scalars$2['String']['input']>;
126
+ username?: InputMaybe$2<Scalars$2['String']['input']>;
127
+ };
128
+ type OrganizationCreateInput$2 = {
129
+ address: AddressInput$2;
130
+ checkLocationOverride?: InputMaybe$2<Scalars$2['Boolean']['input']>;
131
+ costFactorEnabled?: InputMaybe$2<Scalars$2['Boolean']['input']>;
132
+ email?: InputMaybe$2<Scalars$2['String']['input']>;
133
+ integratorId?: InputMaybe$2<Scalars$2['ID']['input']>;
134
+ name: Scalars$2['String']['input'];
135
+ onboardedBy?: InputMaybe$2<Scalars$2['String']['input']>;
136
+ taxId?: InputMaybe$2<Scalars$2['String']['input']>;
137
+ unitsId?: InputMaybe$2<Scalars$2['String']['input']>;
138
+ useTspMetadata?: InputMaybe$2<Scalars$2['Boolean']['input']>;
139
+ };
140
+ declare enum PaymentMethodType$1 {
141
+ DirectConnect = "DIRECT_CONNECT",
142
+ LinkedCard = "LINKED_CARD",
143
+ Ttp = "TTP",
144
+ Unspecified = "UNSPECIFIED",
145
+ }
146
+ type PositionInput$2 = {
147
+ latitude: Scalars$2['Float']['input'];
148
+ longitude: Scalars$2['Float']['input'];
149
+ };
150
+ type ProvisionCardInput$2 = {
151
+ deviceAccountId: Scalars$2['String']['input'];
152
+ googleHardwareId?: InputMaybe$2<Scalars$2['String']['input']>;
153
+ intermediateCertificate?: InputMaybe$2<Scalars$2['String']['input']>;
154
+ leafCertificate?: InputMaybe$2<Scalars$2['String']['input']>;
155
+ nonceSignature?: InputMaybe$2<Scalars$2['String']['input']>;
156
+ nonceValue?: InputMaybe$2<Scalars$2['String']['input']>;
157
+ paymentProviderAccountId: Scalars$2['String']['input'];
158
+ walletId?: InputMaybe$2<Scalars$2['String']['input']>;
159
+ walletType: DigitalWallet$2;
160
+ };
161
+ type ProvisionStatusUpdateInput$2 = {
162
+ deviceAccountId: Scalars$2['String']['input'];
163
+ errorDescription?: InputMaybe$2<Scalars$2['String']['input']>;
164
+ paymentProviderAccountId: Scalars$2['String']['input'];
165
+ status: ProvisioningStatus$2;
166
+ };
167
+ declare enum ProvisioningStatus$2 {
168
+ Error = "ERROR",
169
+ Success = "SUCCESS",
170
+ }
171
+ type PurchaseDaysOfWeekInput$2 = {
172
+ friday: Scalars$2['Boolean']['input'];
173
+ monday: Scalars$2['Boolean']['input'];
174
+ saturday: Scalars$2['Boolean']['input'];
175
+ sunday: Scalars$2['Boolean']['input'];
176
+ thursday: Scalars$2['Boolean']['input'];
177
+ tuesday: Scalars$2['Boolean']['input'];
178
+ wednesday: Scalars$2['Boolean']['input'];
179
+ };
180
+ type PurchaseTimeRangeInput$2 = {
181
+ from?: InputMaybe$2<Scalars$2['String']['input']>;
182
+ to?: InputMaybe$2<Scalars$2['String']['input']>;
183
+ };
184
+ declare enum RoleType$2 {
185
+ Admin = "ADMIN",
186
+ Driver = "DRIVER",
187
+ FullAccess = "FULL_ACCESS",
188
+ Manager = "MANAGER",
189
+ ViewOnly = "VIEW_ONLY",
190
+ }
191
+ type ServiceFuelInput$2 = {
192
+ additionalInfo?: InputMaybe$2<AdditionalServicePayInfoInput$2>;
193
+ pumpNumber: Scalars$2['Int']['input'];
194
+ };
195
+ type ServicePayInput$2 = {
196
+ deviceId?: InputMaybe$2<Scalars$2['String']['input']>;
197
+ fuel?: InputMaybe$2<ServiceFuelInput$2>;
198
+ localTime?: InputMaybe$2<Scalars$2['String']['input']>;
199
+ locationId: Scalars$2['ID']['input'];
200
+ openloopFallback?: InputMaybe$2<Scalars$2['Boolean']['input']>;
201
+ paymentMethodType?: InputMaybe$2<PaymentMethodType$1>;
202
+ position: PositionInput$2;
203
+ requestId: Scalars$2['ID']['input'];
204
+ vehicleId: Scalars$2['ID']['input'];
205
+ };
206
+ type SpendRestrictionsDayInput$2 = {
207
+ isEnabled: Scalars$2['Boolean']['input'];
208
+ purchaseTimes?: InputMaybe$2<Array<InputMaybe$2<PurchaseTimeRangeInput$2>>>;
209
+ };
210
+ type SpendRestrictionsDaysOfWeekInput$2 = {
211
+ friday: SpendRestrictionsDayInput$2;
212
+ monday: SpendRestrictionsDayInput$2;
213
+ saturday: SpendRestrictionsDayInput$2;
214
+ sunday: SpendRestrictionsDayInput$2;
215
+ thursday: SpendRestrictionsDayInput$2;
216
+ tuesday: SpendRestrictionsDayInput$2;
217
+ wednesday: SpendRestrictionsDayInput$2;
218
+ };
219
+ type SpendRestrictionsInput$2 = {
220
+ amountPerDay?: InputMaybe$2<Scalars$2['String']['input']>;
221
+ amountPerTransaction?: InputMaybe$2<Scalars$2['String']['input']>;
222
+ amountPerWeek?: InputMaybe$2<Scalars$2['Int']['input']>;
223
+ checkLocation?: InputMaybe$2<Scalars$2['Boolean']['input']>;
224
+ daysOfWeek?: InputMaybe$2<SpendRestrictionsDaysOfWeekInput$2>;
225
+ enforceFuelSpendEstimation?: InputMaybe$2<Scalars$2['Boolean']['input']>;
226
+ fuel?: InputMaybe$2<FuelRestrictionsInput$2>;
227
+ noOfTransactions?: InputMaybe$2<Scalars$2['Int']['input']>;
228
+ predefinedRule?: InputMaybe$2<Scalars$2['String']['input']>;
229
+ };
230
+ type TtpTokenizationInput$1 = {
231
+ deviceId: Scalars$2['String']['input'];
232
+ requestId?: InputMaybe$2<Scalars$2['String']['input']>;
233
+ };
234
+ type UserCreateInput$2 = {
235
+ additionalInfo?: InputMaybe$2<AdditionalInfoInput$1>;
236
+ email?: InputMaybe$2<Scalars$2['String']['input']>;
237
+ employeeId?: InputMaybe$2<Scalars$2['String']['input']>;
238
+ entityId: Scalars$2['ID']['input'];
239
+ firstName: Scalars$2['String']['input'];
240
+ lastName: Scalars$2['String']['input'];
241
+ loginType?: InputMaybe$2<LoginType$2>;
242
+ organizationId?: InputMaybe$2<Scalars$2['ID']['input']>;
243
+ phoneNumber?: InputMaybe$2<Scalars$2['String']['input']>;
244
+ role: RoleType$2;
245
+ };
246
+ declare enum UserStatus$2 {
247
+ Deactivated = "DEACTIVATED",
248
+ Deleted = "DELETED",
249
+ Invited = "INVITED",
250
+ LockedOut = "LOCKED_OUT",
251
+ Onboarded = "ONBOARDED",
252
+ Unknown = "UNKNOWN",
253
+ }
254
+ type VehicleGroupCreateInput$2 = {
255
+ description?: InputMaybe$2<Scalars$2['String']['input']>;
256
+ driverEnteredOdometerEnabled?: InputMaybe$2<Scalars$2['Boolean']['input']>;
257
+ drivers?: InputMaybe$2<Array<InputMaybe$2<Scalars$2['ID']['input']>>>;
258
+ entityId?: InputMaybe$2<Scalars$2['ID']['input']>;
259
+ externalId?: InputMaybe$2<Scalars$2['String']['input']>;
260
+ jobCodeEnabled?: InputMaybe$2<Scalars$2['Boolean']['input']>;
261
+ jobCodeEntryOption?: InputMaybe$2<JobCodeEntryOptionEnum$2>;
262
+ jobCodeEntryOptional?: InputMaybe$2<Scalars$2['Boolean']['input']>;
263
+ jobCodeOptions?: InputMaybe$2<Array<InputMaybe$2<Scalars$2['String']['input']>>>;
264
+ name: Scalars$2['String']['input'];
265
+ organizationId?: InputMaybe$2<Scalars$2['ID']['input']>;
266
+ spendRestrictions: SpendRestrictionsInput$2;
267
+ vehicles?: InputMaybe$2<Array<InputMaybe$2<Scalars$2['ID']['input']>>>;
268
+ };
269
+ type VehicleGroupDriversAddInput$2 = {
270
+ drivers: Array<Scalars$2['ID']['input']>;
271
+ vehicleGroupId: Scalars$2['ID']['input'];
272
+ };
273
+ type VehicleGroupVehiclesAddInput$2 = {
274
+ vehicleGroupId: Scalars$2['ID']['input'];
275
+ vehicles: Array<Scalars$2['ID']['input']>;
276
+ };
277
+ type VehiclesOnboardInput$2 = {
278
+ customFields?: InputMaybe$2<Array<InputMaybe$2<HashMapInput$2>>>;
279
+ description?: InputMaybe$2<Scalars$2['String']['input']>;
280
+ id?: InputMaybe$2<Scalars$2['ID']['input']>;
281
+ licensePlate?: InputMaybe$2<Scalars$2['String']['input']>;
282
+ licensePlateState?: InputMaybe$2<Scalars$2['String']['input']>;
283
+ number?: InputMaybe$2<Scalars$2['String']['input']>;
284
+ vehicleGroupId: Scalars$2['ID']['input'];
285
+ vin?: InputMaybe$2<Scalars$2['String']['input']>;
286
+ };
287
+ type VehiclesOnboardInputList$2 = {
288
+ vehicles?: InputMaybe$2<Array<InputMaybe$2<VehiclesOnboardInput$2>>>;
289
+ };
290
+ type AdditionalServicePayInfoInput$2 = {
291
+ jobCode?: InputMaybe$2<Scalars$2['String']['input']>;
292
+ odometer?: InputMaybe$2<Scalars$2['Int']['input']>;
293
+ };
294
+ type ApiKeyCreateMutationVariables$2 = Exact$2<{
295
+ input: ApiKeyCreateInput$2;
296
+ }>;
297
+ type ApiKeyCreateMutation$2 = {
298
+ __typename?: 'Mutation';
299
+ apiKeyCreate?: {
300
+ __typename?: 'ApiKeyCreateOutput';
301
+ apiKey: string;
302
+ } | null;
303
+ };
304
+ type ClientOnboardMutationVariables = Exact$2<{
305
+ input: ClientOnboardInput;
306
+ }>;
307
+ type ClientOnboardMutation = {
308
+ __typename?: 'Mutation';
309
+ clientOnboard?: {
310
+ __typename?: 'Entity';
311
+ id: string;
312
+ name?: string | null;
313
+ externalId?: string | null;
314
+ insertedAt?: string | null;
315
+ updatedAt?: string | null;
316
+ deletedAt?: string | null;
317
+ } | null;
318
+ };
319
+ type OrganizationCreateMutationVariables$2 = Exact$2<{
320
+ input: OrganizationCreateInput$2;
321
+ }>;
322
+ type OrganizationCreateMutation$2 = {
323
+ __typename?: 'Mutation';
324
+ organizationCreate?: {
325
+ __typename?: 'Organization';
326
+ id: string;
327
+ name?: string | null;
328
+ onboardedAt?: string | null;
329
+ onboardedBy?: string | null;
330
+ insertedAt?: string | null;
331
+ updatedAt?: string | null;
332
+ deletedAt?: string | null;
333
+ address?: {
334
+ __typename?: 'Address';
335
+ line1?: string | null;
336
+ line2?: string | null;
337
+ city?: string | null;
338
+ state?: string | null;
339
+ country?: string | null;
340
+ zip?: string | null;
341
+ } | null;
342
+ } | null;
343
+ };
344
+ type EntityCreateMutationVariables$2 = Exact$2<{
345
+ input: EntityCreateInput$2;
346
+ }>;
347
+ type EntityCreateMutation$2 = {
348
+ __typename?: 'Mutation';
349
+ entityCreate?: {
350
+ __typename?: 'Entity';
351
+ id: string;
352
+ name?: string | null;
353
+ description?: string | null;
354
+ externalId?: string | null;
355
+ parentId?: string | null;
356
+ hasFinance?: boolean | null;
357
+ funding?: FundingSource$2 | null;
358
+ insertedAt?: string | null;
359
+ updatedAt?: string | null;
360
+ } | null;
361
+ };
362
+ type EntityGetExternalIdQueryVariables = Exact$2<{
363
+ externalId?: InputMaybe$2<Scalars$2['String']['input']>;
364
+ }>;
365
+ type EntityGetExternalIdQuery = {
366
+ __typename?: 'Query';
367
+ entity?: {
368
+ __typename?: 'Entity';
369
+ id: string;
370
+ name?: string | null;
371
+ description?: string | null;
372
+ externalId?: string | null;
373
+ hasFinance?: boolean | null;
374
+ code?: string | null;
375
+ path?: string | null;
376
+ funding?: FundingSource$2 | null;
377
+ insertedAt?: string | null;
378
+ updatedAt?: string | null;
379
+ deletedAt?: string | null;
380
+ costFactor?: number | null;
381
+ parent?: {
382
+ __typename?: 'Entity';
383
+ id: string;
384
+ name?: string | null;
385
+ description?: string | null;
386
+ } | null;
387
+ organization?: {
388
+ __typename?: 'Organization';
389
+ id: string;
390
+ name?: string | null;
391
+ } | null;
392
+ financialConfig?: {
393
+ __typename?: 'FinancialConfig';
394
+ id: string;
395
+ entityId: string;
396
+ accountType?: AccountType | null;
397
+ issuerBin?: string | null;
398
+ insertedAt?: string | null;
399
+ updatedAt?: string | null;
400
+ paymentProvider?: {
401
+ __typename?: 'PaymentProvider';
402
+ id: string;
403
+ name?: string | null;
404
+ slug?: string | null;
405
+ insertedAt?: string | null;
406
+ updatedAt?: string | null;
407
+ } | null;
408
+ } | null;
409
+ } | null;
410
+ };
411
+ type MachineTokenizeUserMutationVariables$2 = Exact$2<{
412
+ input?: InputMaybe$2<MachineTokenizeUserInput$2>;
413
+ }>;
414
+ type MachineTokenizeUserMutation$2 = {
415
+ __typename?: 'Mutation';
416
+ machineTokenizeUser?: {
417
+ __typename?: 'MachineUserToken';
418
+ access_token: string;
419
+ expires_in: number;
420
+ } | null;
421
+ };
422
+ type ProvisionCardMutationVariables$2 = Exact$2<{
423
+ input: ProvisionCardInput$2;
424
+ }>;
425
+ type ProvisionCardMutation$2 = {
426
+ __typename?: 'Mutation';
427
+ provisionCard: {
428
+ __typename?: 'ProvisionCardResponse';
429
+ encryptedData?: string | null;
430
+ activationData?: string | null;
431
+ publicKey?: string | null;
432
+ lastFourDigits?: string | null;
433
+ displayName?: string | null;
434
+ cardNetwork?: CardNetwork$2 | null;
435
+ };
436
+ };
437
+ type ProvisionStatusUpdateMutationVariables$2 = Exact$2<{
438
+ input: ProvisionStatusUpdateInput$2;
439
+ }>;
440
+ type ProvisionStatusUpdateMutation$2 = {
441
+ __typename?: 'Mutation';
442
+ provisionStatusUpdate: {
443
+ __typename?: 'BooleanSuccessOutput';
444
+ success: boolean;
445
+ };
446
+ };
447
+ type ServicePayMutationVariables$2 = Exact$2<{
448
+ input: ServicePayInput$2;
449
+ }>;
450
+ type ServicePayMutation$2 = {
451
+ __typename?: 'Mutation';
452
+ servicePay?: {
453
+ __typename?: 'ServicePayOutput';
454
+ requestId: string;
455
+ transactionId: string;
456
+ } | null;
457
+ };
458
+ type TtpTokenizationMutationVariables$1 = Exact$2<{
459
+ input: TtpTokenizationInput$1;
460
+ }>;
461
+ type TtpTokenizationMutation$1 = {
462
+ __typename?: 'Mutation';
463
+ ttpTokenization?: {
464
+ __typename?: 'TtpTokenizationOutput';
465
+ requestId?: string | null;
466
+ success?: boolean | null;
467
+ paymentProviderAccountId?: string | null;
468
+ deviceAccountId?: string | null;
469
+ lastFourDigits?: string | null;
470
+ displayName?: string | null;
471
+ cardFlag?: CardNetwork$2 | null;
472
+ programSupports?: {
473
+ __typename?: 'ProgramSupports';
474
+ isCloseLoopSupported?: boolean | null;
475
+ isDcSupported?: boolean | null;
476
+ isPhysicalCardSupported?: boolean | null;
477
+ isTtpSupported?: boolean | null;
478
+ isUsingInternalProgram?: boolean | null;
479
+ } | null;
480
+ } | null;
481
+ };
482
+ type UserCreateMutationVariables$2 = Exact$2<{
483
+ input: UserCreateInput$2;
484
+ }>;
485
+ type UserCreateMutation$2 = {
486
+ __typename?: 'Mutation';
487
+ userCreate?: {
488
+ __typename?: 'User';
489
+ id?: string | null;
490
+ firstName?: string | null;
491
+ lastName?: string | null;
492
+ middleName?: string | null;
493
+ fullName?: string | null;
494
+ email?: string | null;
495
+ phoneNumber?: string | null;
496
+ employeeId?: string | null;
497
+ role?: RoleType$2 | null;
498
+ status?: UserStatus$2 | null;
499
+ loginType?: LoginType$2 | null;
500
+ externalId?: string | null;
501
+ organizationId?: string | null;
502
+ insertedAt?: string | null;
503
+ updatedAt?: string | null;
504
+ } | null;
505
+ };
506
+ type VehicleGroupCreateMutationVariables$2 = Exact$2<{
507
+ input: VehicleGroupCreateInput$2;
508
+ }>;
509
+ type VehicleGroupCreateMutation$2 = {
510
+ __typename?: 'Mutation';
511
+ vehicleGroupCreate?: {
512
+ __typename?: 'IndividualVehicleGroup';
513
+ id: string;
514
+ code?: string | null;
515
+ name?: string | null;
516
+ description?: string | null;
517
+ externalId?: string | null;
518
+ driverCount?: number | null;
519
+ vehicleCount?: number | null;
520
+ insertedAt?: string | null;
521
+ updatedAt?: string | null;
522
+ } | null;
523
+ };
524
+ type VehicleGroupDriversAddMutationVariables$2 = Exact$2<{
525
+ input: VehicleGroupDriversAddInput$2;
526
+ }>;
527
+ type VehicleGroupDriversAddMutation$2 = {
528
+ __typename?: 'Mutation';
529
+ vehicleGroupDriversAdd?: {
530
+ __typename?: 'VehicleGroup';
531
+ id: string;
532
+ name?: string | null;
533
+ description?: string | null;
534
+ externalId?: string | null;
535
+ driverCount?: number | null;
536
+ vehicleCount?: number | null;
537
+ insertedAt?: string | null;
538
+ updatedAt?: string | null;
539
+ } | null;
540
+ };
541
+ type VehicleGroupVehiclesAddMutationVariables$2 = Exact$2<{
542
+ input: VehicleGroupVehiclesAddInput$2;
543
+ }>;
544
+ type VehicleGroupVehiclesAddMutation$2 = {
545
+ __typename?: 'Mutation';
546
+ vehicleGroupVehiclesAdd?: {
547
+ __typename?: 'VehicleGroup';
548
+ id: string;
549
+ name?: string | null;
550
+ description?: string | null;
551
+ externalId?: string | null;
552
+ driverCount?: number | null;
553
+ vehicleCount?: number | null;
554
+ insertedAt?: string | null;
555
+ updatedAt?: string | null;
556
+ } | null;
557
+ };
558
+ type VehiclesOnboardMutationVariables$2 = Exact$2<{
559
+ input: VehiclesOnboardInputList$2;
560
+ }>;
561
+ type VehiclesOnboardMutation$2 = {
562
+ __typename?: 'Mutation';
563
+ vehiclesOnboard?: {
564
+ __typename?: 'VehiclesOnboardOutputList';
565
+ vehicles?: Array<{
566
+ __typename?: 'VehiclesOnboardOutput';
567
+ id?: string | null;
568
+ vin?: string | null;
569
+ vehicleGroupId: string;
570
+ success?: boolean | null;
571
+ error?: string | null;
572
+ } | null> | null;
573
+ } | null;
574
+ };
575
+ type SdkFunctionWrapper$2 = <T>(action: (requestHeaders?: Record<string, string>) => Promise<T>, operationName: string, operationType?: string, variables?: any) => Promise<T>;
576
+ declare function getSdk$2(client: GraphQLClient, withWrapper?: SdkFunctionWrapper$2): {
577
+ apiKeyCreate(variables: ApiKeyCreateMutationVariables$2, requestHeaders?: GraphQLClientRequestHeaders$2, signal?: RequestInit["signal"]): Promise<ApiKeyCreateMutation$2>;
578
+ clientOnboard(variables: ClientOnboardMutationVariables, requestHeaders?: GraphQLClientRequestHeaders$2, signal?: RequestInit["signal"]): Promise<ClientOnboardMutation>;
579
+ organizationCreate(variables: OrganizationCreateMutationVariables$2, requestHeaders?: GraphQLClientRequestHeaders$2, signal?: RequestInit["signal"]): Promise<OrganizationCreateMutation$2>;
580
+ entityCreate(variables: EntityCreateMutationVariables$2, requestHeaders?: GraphQLClientRequestHeaders$2, signal?: RequestInit["signal"]): Promise<EntityCreateMutation$2>;
581
+ entityGetExternalId(variables?: EntityGetExternalIdQueryVariables, requestHeaders?: GraphQLClientRequestHeaders$2, signal?: RequestInit["signal"]): Promise<EntityGetExternalIdQuery>;
582
+ machineTokenizeUser(variables?: MachineTokenizeUserMutationVariables$2, requestHeaders?: GraphQLClientRequestHeaders$2, signal?: RequestInit["signal"]): Promise<MachineTokenizeUserMutation$2>;
583
+ provisionCard(variables: ProvisionCardMutationVariables$2, requestHeaders?: GraphQLClientRequestHeaders$2, signal?: RequestInit["signal"]): Promise<ProvisionCardMutation$2>;
584
+ provisionStatusUpdate(variables: ProvisionStatusUpdateMutationVariables$2, requestHeaders?: GraphQLClientRequestHeaders$2, signal?: RequestInit["signal"]): Promise<ProvisionStatusUpdateMutation$2>;
585
+ servicePay(variables: ServicePayMutationVariables$2, requestHeaders?: GraphQLClientRequestHeaders$2, signal?: RequestInit["signal"]): Promise<ServicePayMutation$2>;
586
+ ttpTokenization(variables: TtpTokenizationMutationVariables$1, requestHeaders?: GraphQLClientRequestHeaders$2, signal?: RequestInit["signal"]): Promise<TtpTokenizationMutation$1>;
587
+ userCreate(variables: UserCreateMutationVariables$2, requestHeaders?: GraphQLClientRequestHeaders$2, signal?: RequestInit["signal"]): Promise<UserCreateMutation$2>;
588
+ vehicleGroupCreate(variables: VehicleGroupCreateMutationVariables$2, requestHeaders?: GraphQLClientRequestHeaders$2, signal?: RequestInit["signal"]): Promise<VehicleGroupCreateMutation$2>;
589
+ vehicleGroupDriversAdd(variables: VehicleGroupDriversAddMutationVariables$2, requestHeaders?: GraphQLClientRequestHeaders$2, signal?: RequestInit["signal"]): Promise<VehicleGroupDriversAddMutation$2>;
590
+ vehicleGroupVehiclesAdd(variables: VehicleGroupVehiclesAddMutationVariables$2, requestHeaders?: GraphQLClientRequestHeaders$2, signal?: RequestInit["signal"]): Promise<VehicleGroupVehiclesAddMutation$2>;
591
+ vehiclesOnboard(variables: VehiclesOnboardMutationVariables$2, requestHeaders?: GraphQLClientRequestHeaders$2, signal?: RequestInit["signal"]): Promise<VehiclesOnboardMutation$2>;
592
+ };
593
+ //#endregion
594
+ //#region src/generated/prod/sdk.d.ts
595
+ type Maybe$1<T> = T | null;
596
+ type InputMaybe$1<T> = Maybe$1<T>;
597
+ type Exact$1<T extends {
598
+ [key: string]: unknown;
599
+ }> = { [K in keyof T]: T[K] };
600
+ type GraphQLClientRequestHeaders$1 = RequestOptions['requestHeaders'];
601
+ type Scalars$1 = {
602
+ ID: {
603
+ input: string;
604
+ output: string;
605
+ };
606
+ String: {
607
+ input: string;
608
+ output: string;
609
+ };
610
+ Boolean: {
611
+ input: boolean;
612
+ output: boolean;
613
+ };
614
+ Int: {
615
+ input: number;
616
+ output: number;
617
+ };
618
+ Float: {
619
+ input: number;
620
+ output: number;
621
+ };
622
+ JSON: {
623
+ input: any;
624
+ output: any;
625
+ };
626
+ JSONObject: {
627
+ input: any;
628
+ output: any;
629
+ };
630
+ };
631
+ type AddressInput$1 = {
632
+ city: Scalars$1['String']['input'];
633
+ country: Scalars$1['String']['input'];
634
+ line1: Scalars$1['String']['input'];
635
+ line2?: InputMaybe$1<Scalars$1['String']['input']>;
636
+ state: Scalars$1['String']['input'];
637
+ zip: Scalars$1['String']['input'];
638
+ };
639
+ type ApiKeyCreateInput$1 = {
640
+ entityId?: InputMaybe$1<Scalars$1['ID']['input']>;
641
+ name: Scalars$1['String']['input'];
642
+ organizationId: Scalars$1['ID']['input'];
643
+ };
644
+ declare enum CardNetwork$1 {
645
+ Mastercard = "MASTERCARD",
646
+ Visa = "VISA",
647
+ }
648
+ declare enum DigitalWallet$1 {
649
+ DigitalWalletAndroid = "DIGITAL_WALLET_ANDROID",
650
+ DigitalWalletApple = "DIGITAL_WALLET_APPLE",
64
651
  }
652
+ type EntityCreateInput$1 = {
653
+ description?: InputMaybe$1<Scalars$1['String']['input']>;
654
+ externalId?: InputMaybe$1<Scalars$1['String']['input']>;
655
+ funding?: InputMaybe$1<FundingSource$1>;
656
+ hasFinance?: InputMaybe$1<Scalars$1['Boolean']['input']>;
657
+ name: Scalars$1['String']['input'];
658
+ organizationId?: InputMaybe$1<Scalars$1['ID']['input']>;
659
+ parentId?: InputMaybe$1<Scalars$1['ID']['input']>;
660
+ };
65
661
  declare enum FeeNetworkDesignationType {
66
662
  ExtendedNetwork = "EXTENDED_NETWORK",
67
663
  InNetwork = "IN_NETWORK",
68
664
  OutOfNetwork = "OUT_OF_NETWORK",
69
665
  }
666
+ type FuelRestrictionsInput$1 = {
667
+ amountPerDay?: InputMaybe$1<Scalars$1['String']['input']>;
668
+ amountPerTransaction?: InputMaybe$1<Scalars$1['String']['input']>;
669
+ checkLocation?: InputMaybe$1<Scalars$1['Boolean']['input']>;
670
+ daysOfWeek?: InputMaybe$1<PurchaseDaysOfWeekInput$1>;
671
+ hours?: InputMaybe$1<PurchaseTimeRangeInput$1>;
672
+ isEnabled?: InputMaybe$1<Scalars$1['Boolean']['input']>;
673
+ noOfTransactions?: InputMaybe$1<Scalars$1['Int']['input']>;
674
+ };
675
+ declare enum FundingSource$1 {
676
+ Ach = "ACH",
677
+ Parent = "PARENT",
678
+ Unknown = "UNKNOWN",
679
+ }
680
+ type HashMapInput$1 = {
681
+ key: Scalars$1['String']['input'];
682
+ value: Scalars$1['String']['input'];
683
+ };
684
+ declare enum JobCodeEntryOptionEnum$1 {
685
+ Freeform = "FREEFORM",
686
+ Predefined = "PREDEFINED",
687
+ }
688
+ declare enum LoginType$1 {
689
+ Email = "EMAIL",
690
+ Phone = "PHONE",
691
+ Unknown = "UNKNOWN",
692
+ }
693
+ type MachineTokenizeUserInput$1 = {
694
+ email?: InputMaybe$1<Scalars$1['String']['input']>;
695
+ externalId: Scalars$1['String']['input'];
696
+ firstName?: InputMaybe$1<Scalars$1['String']['input']>;
697
+ lastName?: InputMaybe$1<Scalars$1['String']['input']>;
698
+ organizationId: Scalars$1['ID']['input'];
699
+ phoneNumber?: InputMaybe$1<Scalars$1['String']['input']>;
700
+ username?: InputMaybe$1<Scalars$1['String']['input']>;
701
+ };
702
+ type OrganizationCreateInput$1 = {
703
+ address: AddressInput$1;
704
+ checkLocationOverride?: InputMaybe$1<Scalars$1['Boolean']['input']>;
705
+ costFactorEnabled?: InputMaybe$1<Scalars$1['Boolean']['input']>;
706
+ email?: InputMaybe$1<Scalars$1['String']['input']>;
707
+ integratorId?: InputMaybe$1<Scalars$1['ID']['input']>;
708
+ name: Scalars$1['String']['input'];
709
+ onboardedBy?: InputMaybe$1<Scalars$1['String']['input']>;
710
+ taxId?: InputMaybe$1<Scalars$1['String']['input']>;
711
+ unitsId?: InputMaybe$1<Scalars$1['String']['input']>;
712
+ useTspMetadata?: InputMaybe$1<Scalars$1['Boolean']['input']>;
713
+ };
714
+ type PositionInput$1 = {
715
+ latitude: Scalars$1['Float']['input'];
716
+ longitude: Scalars$1['Float']['input'];
717
+ };
718
+ type ProvisionCardInput$1 = {
719
+ deviceAccountId: Scalars$1['String']['input'];
720
+ googleHardwareId?: InputMaybe$1<Scalars$1['String']['input']>;
721
+ intermediateCertificate?: InputMaybe$1<Scalars$1['String']['input']>;
722
+ leafCertificate?: InputMaybe$1<Scalars$1['String']['input']>;
723
+ nonceSignature?: InputMaybe$1<Scalars$1['String']['input']>;
724
+ nonceValue?: InputMaybe$1<Scalars$1['String']['input']>;
725
+ paymentProviderAccountId: Scalars$1['String']['input'];
726
+ walletId?: InputMaybe$1<Scalars$1['String']['input']>;
727
+ walletType: DigitalWallet$1;
728
+ };
729
+ type ProvisionStatusUpdateInput$1 = {
730
+ deviceAccountId: Scalars$1['String']['input'];
731
+ errorDescription?: InputMaybe$1<Scalars$1['String']['input']>;
732
+ paymentProviderAccountId: Scalars$1['String']['input'];
733
+ status: ProvisioningStatus$1;
734
+ };
735
+ declare enum ProvisioningStatus$1 {
736
+ Error = "ERROR",
737
+ Success = "SUCCESS",
738
+ }
739
+ type PurchaseDaysOfWeekInput$1 = {
740
+ friday: Scalars$1['Boolean']['input'];
741
+ monday: Scalars$1['Boolean']['input'];
742
+ saturday: Scalars$1['Boolean']['input'];
743
+ sunday: Scalars$1['Boolean']['input'];
744
+ thursday: Scalars$1['Boolean']['input'];
745
+ tuesday: Scalars$1['Boolean']['input'];
746
+ wednesday: Scalars$1['Boolean']['input'];
747
+ };
748
+ type PurchaseTimeRangeInput$1 = {
749
+ from?: InputMaybe$1<Scalars$1['String']['input']>;
750
+ to?: InputMaybe$1<Scalars$1['String']['input']>;
751
+ };
752
+ declare enum RoleType$1 {
753
+ Admin = "ADMIN",
754
+ Driver = "DRIVER",
755
+ FullAccess = "FULL_ACCESS",
756
+ Manager = "MANAGER",
757
+ ViewOnly = "VIEW_ONLY",
758
+ }
759
+ type ServiceFuelInput$1 = {
760
+ additionalInfo?: InputMaybe$1<AdditionalServicePayInfoInput$1>;
761
+ pumpNumber: Scalars$1['Int']['input'];
762
+ };
763
+ type ServicePayInput$1 = {
764
+ deviceId?: InputMaybe$1<Scalars$1['String']['input']>;
765
+ fuel?: InputMaybe$1<ServiceFuelInput$1>;
766
+ localTime?: InputMaybe$1<Scalars$1['String']['input']>;
767
+ locationId: Scalars$1['ID']['input'];
768
+ openloopFallback?: InputMaybe$1<Scalars$1['Boolean']['input']>;
769
+ position: PositionInput$1;
770
+ requestId: Scalars$1['ID']['input'];
771
+ vehicleId: Scalars$1['ID']['input'];
772
+ };
773
+ type SpendRestrictionsDayInput$1 = {
774
+ isEnabled: Scalars$1['Boolean']['input'];
775
+ purchaseTimes?: InputMaybe$1<Array<InputMaybe$1<PurchaseTimeRangeInput$1>>>;
776
+ };
777
+ type SpendRestrictionsDaysOfWeekInput$1 = {
778
+ friday: SpendRestrictionsDayInput$1;
779
+ monday: SpendRestrictionsDayInput$1;
780
+ saturday: SpendRestrictionsDayInput$1;
781
+ sunday: SpendRestrictionsDayInput$1;
782
+ thursday: SpendRestrictionsDayInput$1;
783
+ tuesday: SpendRestrictionsDayInput$1;
784
+ wednesday: SpendRestrictionsDayInput$1;
785
+ };
786
+ type SpendRestrictionsInput$1 = {
787
+ amountPerDay?: InputMaybe$1<Scalars$1['String']['input']>;
788
+ amountPerTransaction?: InputMaybe$1<Scalars$1['String']['input']>;
789
+ amountPerWeek?: InputMaybe$1<Scalars$1['Int']['input']>;
790
+ checkLocation?: InputMaybe$1<Scalars$1['Boolean']['input']>;
791
+ daysOfWeek?: InputMaybe$1<SpendRestrictionsDaysOfWeekInput$1>;
792
+ enforceFuelSpendEstimation?: InputMaybe$1<Scalars$1['Boolean']['input']>;
793
+ fuel?: InputMaybe$1<FuelRestrictionsInput$1>;
794
+ noOfTransactions?: InputMaybe$1<Scalars$1['Int']['input']>;
795
+ predefinedRule?: InputMaybe$1<Scalars$1['String']['input']>;
796
+ };
797
+ type UserCreateInput$1 = {
798
+ email?: InputMaybe$1<Scalars$1['String']['input']>;
799
+ employeeId?: InputMaybe$1<Scalars$1['String']['input']>;
800
+ entityId: Scalars$1['ID']['input'];
801
+ firstName: Scalars$1['String']['input'];
802
+ isCorporatePhone?: InputMaybe$1<Scalars$1['Boolean']['input']>;
803
+ lastName: Scalars$1['String']['input'];
804
+ login?: InputMaybe$1<Scalars$1['String']['input']>;
805
+ loginType?: InputMaybe$1<LoginType$1>;
806
+ middleName?: InputMaybe$1<Scalars$1['String']['input']>;
807
+ organizationId?: InputMaybe$1<Scalars$1['ID']['input']>;
808
+ phoneNumber: Scalars$1['String']['input'];
809
+ role: RoleType$1;
810
+ };
811
+ declare enum UserStatus$1 {
812
+ Deactivated = "DEACTIVATED",
813
+ Deleted = "DELETED",
814
+ Invited = "INVITED",
815
+ LockedOut = "LOCKED_OUT",
816
+ Onboarded = "ONBOARDED",
817
+ Unknown = "UNKNOWN",
818
+ }
819
+ type VehicleGroupCreateInput$1 = {
820
+ description?: InputMaybe$1<Scalars$1['String']['input']>;
821
+ driverEnteredOdometerEnabled?: InputMaybe$1<Scalars$1['Boolean']['input']>;
822
+ drivers?: InputMaybe$1<Array<InputMaybe$1<Scalars$1['ID']['input']>>>;
823
+ entityId?: InputMaybe$1<Scalars$1['ID']['input']>;
824
+ externalId?: InputMaybe$1<Scalars$1['String']['input']>;
825
+ jobCodeEnabled?: InputMaybe$1<Scalars$1['Boolean']['input']>;
826
+ jobCodeEntryOption?: InputMaybe$1<JobCodeEntryOptionEnum$1>;
827
+ jobCodeEntryOptional?: InputMaybe$1<Scalars$1['Boolean']['input']>;
828
+ jobCodeOptions?: InputMaybe$1<Array<InputMaybe$1<Scalars$1['String']['input']>>>;
829
+ name: Scalars$1['String']['input'];
830
+ organizationId?: InputMaybe$1<Scalars$1['ID']['input']>;
831
+ spendRestrictions: SpendRestrictionsInput$1;
832
+ vehicles?: InputMaybe$1<Array<InputMaybe$1<Scalars$1['ID']['input']>>>;
833
+ };
834
+ type VehicleGroupDriversAddInput$1 = {
835
+ drivers: Array<Scalars$1['ID']['input']>;
836
+ vehicleGroupId: Scalars$1['ID']['input'];
837
+ };
838
+ type VehicleGroupVehiclesAddInput$1 = {
839
+ vehicleGroupId: Scalars$1['ID']['input'];
840
+ vehicles: Array<Scalars$1['ID']['input']>;
841
+ };
842
+ type VehiclesOnboardInput$1 = {
843
+ customFields?: InputMaybe$1<Array<InputMaybe$1<HashMapInput$1>>>;
844
+ description?: InputMaybe$1<Scalars$1['String']['input']>;
845
+ id?: InputMaybe$1<Scalars$1['ID']['input']>;
846
+ licensePlate?: InputMaybe$1<Scalars$1['String']['input']>;
847
+ licensePlateState?: InputMaybe$1<Scalars$1['String']['input']>;
848
+ number?: InputMaybe$1<Scalars$1['String']['input']>;
849
+ vehicleGroupId: Scalars$1['ID']['input'];
850
+ vin?: InputMaybe$1<Scalars$1['String']['input']>;
851
+ };
852
+ type VehiclesOnboardInputList$1 = {
853
+ vehicles?: InputMaybe$1<Array<InputMaybe$1<VehiclesOnboardInput$1>>>;
854
+ };
855
+ type AdditionalServicePayInfoInput$1 = {
856
+ jobCode?: InputMaybe$1<Scalars$1['String']['input']>;
857
+ odometer?: InputMaybe$1<Scalars$1['Int']['input']>;
858
+ };
859
+ type ApiKeyCreateMutationVariables$1 = Exact$1<{
860
+ input: ApiKeyCreateInput$1;
861
+ }>;
862
+ type ApiKeyCreateMutation$1 = {
863
+ __typename?: 'Mutation';
864
+ apiKeyCreate?: {
865
+ __typename?: 'ApiKeyCreateOutput';
866
+ apiKey: string;
867
+ } | null;
868
+ };
869
+ type OrganizationCreateMutationVariables$1 = Exact$1<{
870
+ input: OrganizationCreateInput$1;
871
+ }>;
872
+ type OrganizationCreateMutation$1 = {
873
+ __typename?: 'Mutation';
874
+ organizationCreate?: {
875
+ __typename?: 'Organization';
876
+ id: string;
877
+ name?: string | null;
878
+ onboardedAt?: string | null;
879
+ onboardedBy?: string | null;
880
+ insertedAt?: string | null;
881
+ updatedAt?: string | null;
882
+ deletedAt?: string | null;
883
+ address?: {
884
+ __typename?: 'Address';
885
+ line1?: string | null;
886
+ line2?: string | null;
887
+ city?: string | null;
888
+ state?: string | null;
889
+ country?: string | null;
890
+ zip?: string | null;
891
+ } | null;
892
+ } | null;
893
+ };
894
+ type EntityCreateMutationVariables$1 = Exact$1<{
895
+ input: EntityCreateInput$1;
896
+ }>;
897
+ type EntityCreateMutation$1 = {
898
+ __typename?: 'Mutation';
899
+ entityCreate?: {
900
+ __typename?: 'Entity';
901
+ id: string;
902
+ name?: string | null;
903
+ description?: string | null;
904
+ externalId?: string | null;
905
+ parentId?: string | null;
906
+ hasFinance?: boolean | null;
907
+ funding?: FundingSource$1 | null;
908
+ insertedAt?: string | null;
909
+ updatedAt?: string | null;
910
+ } | null;
911
+ };
912
+ type MachineTokenizeUserMutationVariables$1 = Exact$1<{
913
+ input?: InputMaybe$1<MachineTokenizeUserInput$1>;
914
+ }>;
915
+ type MachineTokenizeUserMutation$1 = {
916
+ __typename?: 'Mutation';
917
+ machineTokenizeUser?: {
918
+ __typename?: 'MachineUserToken';
919
+ access_token: string;
920
+ expires_in: number;
921
+ } | null;
922
+ };
923
+ type ProvisionCardMutationVariables$1 = Exact$1<{
924
+ input: ProvisionCardInput$1;
925
+ }>;
926
+ type ProvisionCardMutation$1 = {
927
+ __typename?: 'Mutation';
928
+ provisionCard: {
929
+ __typename?: 'ProvisionCardResponse';
930
+ encryptedData?: string | null;
931
+ activationData?: string | null;
932
+ publicKey?: string | null;
933
+ lastFourDigits?: string | null;
934
+ displayName?: string | null;
935
+ cardNetwork?: CardNetwork$1 | null;
936
+ };
937
+ };
938
+ type ProvisionStatusUpdateMutationVariables$1 = Exact$1<{
939
+ input: ProvisionStatusUpdateInput$1;
940
+ }>;
941
+ type ProvisionStatusUpdateMutation$1 = {
942
+ __typename?: 'Mutation';
943
+ provisionStatusUpdate: {
944
+ __typename?: 'BooleanSuccessOutput';
945
+ success: boolean;
946
+ };
947
+ };
948
+ type ServicePayMutationVariables$1 = Exact$1<{
949
+ input: ServicePayInput$1;
950
+ }>;
951
+ type ServicePayMutation$1 = {
952
+ __typename?: 'Mutation';
953
+ servicePay?: {
954
+ __typename?: 'ServicePayOutput';
955
+ requestId: string;
956
+ transactionId: string;
957
+ } | null;
958
+ };
959
+ type UserCreateMutationVariables$1 = Exact$1<{
960
+ input: UserCreateInput$1;
961
+ }>;
962
+ type UserCreateMutation$1 = {
963
+ __typename?: 'Mutation';
964
+ userCreate?: {
965
+ __typename?: 'User';
966
+ id?: string | null;
967
+ firstName?: string | null;
968
+ lastName?: string | null;
969
+ middleName?: string | null;
970
+ fullName?: string | null;
971
+ email?: string | null;
972
+ phoneNumber?: string | null;
973
+ employeeId?: string | null;
974
+ role?: RoleType$1 | null;
975
+ status?: UserStatus$1 | null;
976
+ loginType?: LoginType$1 | null;
977
+ externalId?: string | null;
978
+ organizationId?: string | null;
979
+ insertedAt?: string | null;
980
+ updatedAt?: string | null;
981
+ } | null;
982
+ };
983
+ type VehicleGroupCreateMutationVariables$1 = Exact$1<{
984
+ input: VehicleGroupCreateInput$1;
985
+ }>;
986
+ type VehicleGroupCreateMutation$1 = {
987
+ __typename?: 'Mutation';
988
+ vehicleGroupCreate?: {
989
+ __typename?: 'IndividualVehicleGroup';
990
+ id: string;
991
+ code?: string | null;
992
+ name?: string | null;
993
+ description?: string | null;
994
+ externalId?: string | null;
995
+ driverCount?: number | null;
996
+ vehicleCount?: number | null;
997
+ insertedAt?: string | null;
998
+ updatedAt?: string | null;
999
+ } | null;
1000
+ };
1001
+ type VehicleGroupDriversAddMutationVariables$1 = Exact$1<{
1002
+ input: VehicleGroupDriversAddInput$1;
1003
+ }>;
1004
+ type VehicleGroupDriversAddMutation$1 = {
1005
+ __typename?: 'Mutation';
1006
+ vehicleGroupDriversAdd?: {
1007
+ __typename?: 'VehicleGroup';
1008
+ id: string;
1009
+ name?: string | null;
1010
+ description?: string | null;
1011
+ externalId?: string | null;
1012
+ driverCount?: number | null;
1013
+ vehicleCount?: number | null;
1014
+ insertedAt?: string | null;
1015
+ updatedAt?: string | null;
1016
+ } | null;
1017
+ };
1018
+ type VehicleGroupVehiclesAddMutationVariables$1 = Exact$1<{
1019
+ input: VehicleGroupVehiclesAddInput$1;
1020
+ }>;
1021
+ type VehicleGroupVehiclesAddMutation$1 = {
1022
+ __typename?: 'Mutation';
1023
+ vehicleGroupVehiclesAdd?: {
1024
+ __typename?: 'VehicleGroup';
1025
+ id: string;
1026
+ name?: string | null;
1027
+ description?: string | null;
1028
+ externalId?: string | null;
1029
+ driverCount?: number | null;
1030
+ vehicleCount?: number | null;
1031
+ insertedAt?: string | null;
1032
+ updatedAt?: string | null;
1033
+ } | null;
1034
+ };
1035
+ type VehiclesOnboardMutationVariables$1 = Exact$1<{
1036
+ input: VehiclesOnboardInputList$1;
1037
+ }>;
1038
+ type VehiclesOnboardMutation$1 = {
1039
+ __typename?: 'Mutation';
1040
+ vehiclesOnboard?: {
1041
+ __typename?: 'VehiclesOnboardOutputList';
1042
+ vehicles?: Array<{
1043
+ __typename?: 'VehiclesOnboardOutput';
1044
+ id?: string | null;
1045
+ vin?: string | null;
1046
+ vehicleGroupId: string;
1047
+ success?: boolean | null;
1048
+ error?: string | null;
1049
+ } | null> | null;
1050
+ } | null;
1051
+ };
1052
+ type SdkFunctionWrapper$1 = <T>(action: (requestHeaders?: Record<string, string>) => Promise<T>, operationName: string, operationType?: string, variables?: any) => Promise<T>;
1053
+ declare function getSdk$1(client: GraphQLClient, withWrapper?: SdkFunctionWrapper$1): {
1054
+ apiKeyCreate(variables: ApiKeyCreateMutationVariables$1, requestHeaders?: GraphQLClientRequestHeaders$1, signal?: RequestInit["signal"]): Promise<ApiKeyCreateMutation$1>;
1055
+ organizationCreate(variables: OrganizationCreateMutationVariables$1, requestHeaders?: GraphQLClientRequestHeaders$1, signal?: RequestInit["signal"]): Promise<OrganizationCreateMutation$1>;
1056
+ entityCreate(variables: EntityCreateMutationVariables$1, requestHeaders?: GraphQLClientRequestHeaders$1, signal?: RequestInit["signal"]): Promise<EntityCreateMutation$1>;
1057
+ machineTokenizeUser(variables?: MachineTokenizeUserMutationVariables$1, requestHeaders?: GraphQLClientRequestHeaders$1, signal?: RequestInit["signal"]): Promise<MachineTokenizeUserMutation$1>;
1058
+ provisionCard(variables: ProvisionCardMutationVariables$1, requestHeaders?: GraphQLClientRequestHeaders$1, signal?: RequestInit["signal"]): Promise<ProvisionCardMutation$1>;
1059
+ provisionStatusUpdate(variables: ProvisionStatusUpdateMutationVariables$1, requestHeaders?: GraphQLClientRequestHeaders$1, signal?: RequestInit["signal"]): Promise<ProvisionStatusUpdateMutation$1>;
1060
+ servicePay(variables: ServicePayMutationVariables$1, requestHeaders?: GraphQLClientRequestHeaders$1, signal?: RequestInit["signal"]): Promise<ServicePayMutation$1>;
1061
+ userCreate(variables: UserCreateMutationVariables$1, requestHeaders?: GraphQLClientRequestHeaders$1, signal?: RequestInit["signal"]): Promise<UserCreateMutation$1>;
1062
+ vehicleGroupCreate(variables: VehicleGroupCreateMutationVariables$1, requestHeaders?: GraphQLClientRequestHeaders$1, signal?: RequestInit["signal"]): Promise<VehicleGroupCreateMutation$1>;
1063
+ vehicleGroupDriversAdd(variables: VehicleGroupDriversAddMutationVariables$1, requestHeaders?: GraphQLClientRequestHeaders$1, signal?: RequestInit["signal"]): Promise<VehicleGroupDriversAddMutation$1>;
1064
+ vehicleGroupVehiclesAdd(variables: VehicleGroupVehiclesAddMutationVariables$1, requestHeaders?: GraphQLClientRequestHeaders$1, signal?: RequestInit["signal"]): Promise<VehicleGroupVehiclesAddMutation$1>;
1065
+ vehiclesOnboard(variables: VehiclesOnboardMutationVariables$1, requestHeaders?: GraphQLClientRequestHeaders$1, signal?: RequestInit["signal"]): Promise<VehiclesOnboardMutation$1>;
1066
+ };
1067
+ //#endregion
1068
+ //#region src/generated/stage/sdk.d.ts
1069
+ type Maybe<T> = T | null;
1070
+ type InputMaybe<T> = Maybe<T>;
1071
+ type Exact<T extends {
1072
+ [key: string]: unknown;
1073
+ }> = { [K in keyof T]: T[K] };
1074
+ type GraphQLClientRequestHeaders = RequestOptions['requestHeaders'];
1075
+ type Scalars = {
1076
+ ID: {
1077
+ input: string;
1078
+ output: string;
1079
+ };
1080
+ String: {
1081
+ input: string;
1082
+ output: string;
1083
+ };
1084
+ Boolean: {
1085
+ input: boolean;
1086
+ output: boolean;
1087
+ };
1088
+ Int: {
1089
+ input: number;
1090
+ output: number;
1091
+ };
1092
+ Float: {
1093
+ input: number;
1094
+ output: number;
1095
+ };
1096
+ JSON: {
1097
+ input: any;
1098
+ output: any;
1099
+ };
1100
+ JSONObject: {
1101
+ input: any;
1102
+ output: any;
1103
+ };
1104
+ };
1105
+ type AdditionalInfoInput = {
1106
+ contactPhoneNumber?: InputMaybe<Scalars['String']['input']>;
1107
+ isCorporatePhone?: InputMaybe<Scalars['Boolean']['input']>;
1108
+ };
1109
+ type AddressInput = {
1110
+ city: Scalars['String']['input'];
1111
+ country: Scalars['String']['input'];
1112
+ line1: Scalars['String']['input'];
1113
+ line2?: InputMaybe<Scalars['String']['input']>;
1114
+ state: Scalars['String']['input'];
1115
+ zip: Scalars['String']['input'];
1116
+ };
1117
+ type ApiKeyCreateInput = {
1118
+ entityId?: InputMaybe<Scalars['ID']['input']>;
1119
+ name: Scalars['String']['input'];
1120
+ organizationId: Scalars['ID']['input'];
1121
+ };
1122
+ declare enum CardNetwork {
1123
+ Mastercard = "MASTERCARD",
1124
+ Visa = "VISA",
1125
+ }
1126
+ declare enum DigitalWallet {
1127
+ DigitalWalletAndroid = "DIGITAL_WALLET_ANDROID",
1128
+ DigitalWalletApple = "DIGITAL_WALLET_APPLE",
1129
+ }
1130
+ type EntityCreateInput = {
1131
+ description?: InputMaybe<Scalars['String']['input']>;
1132
+ externalId?: InputMaybe<Scalars['String']['input']>;
1133
+ funding?: InputMaybe<FundingSource>;
1134
+ hasFinance?: InputMaybe<Scalars['Boolean']['input']>;
1135
+ name: Scalars['String']['input'];
1136
+ organizationId?: InputMaybe<Scalars['ID']['input']>;
1137
+ parentId?: InputMaybe<Scalars['ID']['input']>;
1138
+ };
1139
+ type FuelRestrictionsInput = {
1140
+ amountPerDay?: InputMaybe<Scalars['String']['input']>;
1141
+ amountPerTransaction?: InputMaybe<Scalars['String']['input']>;
1142
+ checkLocation?: InputMaybe<Scalars['Boolean']['input']>;
1143
+ daysOfWeek?: InputMaybe<PurchaseDaysOfWeekInput>;
1144
+ hours?: InputMaybe<PurchaseTimeRangeInput>;
1145
+ isEnabled?: InputMaybe<Scalars['Boolean']['input']>;
1146
+ noOfTransactions?: InputMaybe<Scalars['Int']['input']>;
1147
+ };
70
1148
  declare enum FundingSource {
71
- /** Electronic bank transfer. */
72
1149
  Ach = "ACH",
73
- /** Funding is done through the parent entities funding source. */
74
1150
  Parent = "PARENT",
75
1151
  Unknown = "UNKNOWN",
76
1152
  }
77
- interface OrganizationCreateInput {
78
- /** The address of the organization */
1153
+ type HashMapInput = {
1154
+ key: Scalars['String']['input'];
1155
+ value: Scalars['String']['input'];
1156
+ };
1157
+ declare enum JobCodeEntryOptionEnum {
1158
+ Freeform = "FREEFORM",
1159
+ Predefined = "PREDEFINED",
1160
+ }
1161
+ declare enum LoginType {
1162
+ Email = "EMAIL",
1163
+ Phone = "PHONE",
1164
+ Unknown = "UNKNOWN",
1165
+ }
1166
+ type MachineTokenizeUserInput = {
1167
+ email?: InputMaybe<Scalars['String']['input']>;
1168
+ externalId: Scalars['String']['input'];
1169
+ firstName?: InputMaybe<Scalars['String']['input']>;
1170
+ lastName?: InputMaybe<Scalars['String']['input']>;
1171
+ organizationId: Scalars['ID']['input'];
1172
+ phoneNumber?: InputMaybe<Scalars['String']['input']>;
1173
+ username?: InputMaybe<Scalars['String']['input']>;
1174
+ };
1175
+ type OrganizationCreateInput = {
79
1176
  address: AddressInput;
80
- /** Disable check location when vehicle data is down */
81
- checkLocationOverride?: InputMaybe<Scalars["Boolean"]["input"]>;
82
- /** Cost factor to filter by fuel station cost */
83
- costFactorEnabled?: InputMaybe<Scalars["Boolean"]["input"]>;
84
- /** Organization email. */
85
- email?: InputMaybe<Scalars["String"]["input"]>;
86
- integratorId?: InputMaybe<Scalars["ID"]["input"]>;
87
- /** Organization name. */
88
- name: Scalars["String"]["input"];
89
- /** Who onboarded the organization */
90
- onboardedBy?: InputMaybe<Scalars["String"]["input"]>;
91
- /** Organization tax id. */
92
- taxId?: InputMaybe<Scalars["String"]["input"]>;
93
- unitsId?: InputMaybe<Scalars["String"]["input"]>;
94
- /** If enabled, syncs telematics data for a vehicle and removes ability to edit that vehicle */
95
- useTspMetadata?: InputMaybe<Scalars["Boolean"]["input"]>;
1177
+ checkLocationOverride?: InputMaybe<Scalars['Boolean']['input']>;
1178
+ costFactorEnabled?: InputMaybe<Scalars['Boolean']['input']>;
1179
+ email?: InputMaybe<Scalars['String']['input']>;
1180
+ integratorId?: InputMaybe<Scalars['ID']['input']>;
1181
+ name: Scalars['String']['input'];
1182
+ onboardedBy?: InputMaybe<Scalars['String']['input']>;
1183
+ taxId?: InputMaybe<Scalars['String']['input']>;
1184
+ unitsId?: InputMaybe<Scalars['String']['input']>;
1185
+ useTspMetadata?: InputMaybe<Scalars['Boolean']['input']>;
1186
+ };
1187
+ declare enum PaymentMethodType {
1188
+ DirectConnect = "DIRECT_CONNECT",
1189
+ LinkedCard = "LINKED_CARD",
1190
+ Ttp = "TTP",
1191
+ Unspecified = "UNSPECIFIED",
1192
+ }
1193
+ type PositionInput = {
1194
+ latitude: Scalars['Float']['input'];
1195
+ longitude: Scalars['Float']['input'];
1196
+ };
1197
+ type ProvisionCardInput = {
1198
+ deviceAccountId: Scalars['String']['input'];
1199
+ googleHardwareId?: InputMaybe<Scalars['String']['input']>;
1200
+ intermediateCertificate?: InputMaybe<Scalars['String']['input']>;
1201
+ leafCertificate?: InputMaybe<Scalars['String']['input']>;
1202
+ nonceSignature?: InputMaybe<Scalars['String']['input']>;
1203
+ nonceValue?: InputMaybe<Scalars['String']['input']>;
1204
+ paymentProviderAccountId: Scalars['String']['input'];
1205
+ walletId?: InputMaybe<Scalars['String']['input']>;
1206
+ walletType: DigitalWallet;
1207
+ };
1208
+ type ProvisionStatusUpdateInput = {
1209
+ deviceAccountId: Scalars['String']['input'];
1210
+ errorDescription?: InputMaybe<Scalars['String']['input']>;
1211
+ paymentProviderAccountId: Scalars['String']['input'];
1212
+ status: ProvisioningStatus;
1213
+ };
1214
+ declare enum ProvisioningStatus {
1215
+ Error = "ERROR",
1216
+ Success = "SUCCESS",
96
1217
  }
1218
+ type PurchaseDaysOfWeekInput = {
1219
+ friday: Scalars['Boolean']['input'];
1220
+ monday: Scalars['Boolean']['input'];
1221
+ saturday: Scalars['Boolean']['input'];
1222
+ sunday: Scalars['Boolean']['input'];
1223
+ thursday: Scalars['Boolean']['input'];
1224
+ tuesday: Scalars['Boolean']['input'];
1225
+ wednesday: Scalars['Boolean']['input'];
1226
+ };
1227
+ type PurchaseTimeRangeInput = {
1228
+ from?: InputMaybe<Scalars['String']['input']>;
1229
+ to?: InputMaybe<Scalars['String']['input']>;
1230
+ };
1231
+ declare enum RoleType {
1232
+ Admin = "ADMIN",
1233
+ Driver = "DRIVER",
1234
+ FullAccess = "FULL_ACCESS",
1235
+ Manager = "MANAGER",
1236
+ ViewOnly = "VIEW_ONLY",
1237
+ }
1238
+ type ServiceFuelInput = {
1239
+ additionalInfo?: InputMaybe<AdditionalServicePayInfoInput>;
1240
+ pumpNumber: Scalars['Int']['input'];
1241
+ };
1242
+ type ServicePayInput = {
1243
+ deviceId?: InputMaybe<Scalars['String']['input']>;
1244
+ fuel?: InputMaybe<ServiceFuelInput>;
1245
+ localTime?: InputMaybe<Scalars['String']['input']>;
1246
+ locationId: Scalars['ID']['input'];
1247
+ openloopFallback?: InputMaybe<Scalars['Boolean']['input']>;
1248
+ paymentMethodType?: InputMaybe<PaymentMethodType>;
1249
+ position: PositionInput;
1250
+ requestId: Scalars['ID']['input'];
1251
+ vehicleId: Scalars['ID']['input'];
1252
+ };
1253
+ type SpendRestrictionsDayInput = {
1254
+ isEnabled: Scalars['Boolean']['input'];
1255
+ purchaseTimes?: InputMaybe<Array<InputMaybe<PurchaseTimeRangeInput>>>;
1256
+ };
1257
+ type SpendRestrictionsDaysOfWeekInput = {
1258
+ friday: SpendRestrictionsDayInput;
1259
+ monday: SpendRestrictionsDayInput;
1260
+ saturday: SpendRestrictionsDayInput;
1261
+ sunday: SpendRestrictionsDayInput;
1262
+ thursday: SpendRestrictionsDayInput;
1263
+ tuesday: SpendRestrictionsDayInput;
1264
+ wednesday: SpendRestrictionsDayInput;
1265
+ };
1266
+ type SpendRestrictionsInput = {
1267
+ amountPerDay?: InputMaybe<Scalars['String']['input']>;
1268
+ amountPerTransaction?: InputMaybe<Scalars['String']['input']>;
1269
+ amountPerWeek?: InputMaybe<Scalars['Int']['input']>;
1270
+ checkLocation?: InputMaybe<Scalars['Boolean']['input']>;
1271
+ daysOfWeek?: InputMaybe<SpendRestrictionsDaysOfWeekInput>;
1272
+ enforceFuelSpendEstimation?: InputMaybe<Scalars['Boolean']['input']>;
1273
+ fuel?: InputMaybe<FuelRestrictionsInput>;
1274
+ noOfTransactions?: InputMaybe<Scalars['Int']['input']>;
1275
+ predefinedRule?: InputMaybe<Scalars['String']['input']>;
1276
+ };
1277
+ type TtpTokenizationInput = {
1278
+ deviceId: Scalars['String']['input'];
1279
+ requestId?: InputMaybe<Scalars['String']['input']>;
1280
+ };
1281
+ type UserCreateInput = {
1282
+ additionalInfo?: InputMaybe<AdditionalInfoInput>;
1283
+ email?: InputMaybe<Scalars['String']['input']>;
1284
+ employeeId?: InputMaybe<Scalars['String']['input']>;
1285
+ entityId: Scalars['ID']['input'];
1286
+ firstName: Scalars['String']['input'];
1287
+ lastName: Scalars['String']['input'];
1288
+ loginType?: InputMaybe<LoginType>;
1289
+ organizationId?: InputMaybe<Scalars['ID']['input']>;
1290
+ phoneNumber?: InputMaybe<Scalars['String']['input']>;
1291
+ role: RoleType;
1292
+ };
1293
+ declare enum UserStatus {
1294
+ Deactivated = "DEACTIVATED",
1295
+ Deleted = "DELETED",
1296
+ Invited = "INVITED",
1297
+ LockedOut = "LOCKED_OUT",
1298
+ Onboarded = "ONBOARDED",
1299
+ Unknown = "UNKNOWN",
1300
+ }
1301
+ type VehicleGroupCreateInput = {
1302
+ description?: InputMaybe<Scalars['String']['input']>;
1303
+ driverEnteredOdometerEnabled?: InputMaybe<Scalars['Boolean']['input']>;
1304
+ drivers?: InputMaybe<Array<InputMaybe<Scalars['ID']['input']>>>;
1305
+ entityId?: InputMaybe<Scalars['ID']['input']>;
1306
+ externalId?: InputMaybe<Scalars['String']['input']>;
1307
+ jobCodeEnabled?: InputMaybe<Scalars['Boolean']['input']>;
1308
+ jobCodeEntryOption?: InputMaybe<JobCodeEntryOptionEnum>;
1309
+ jobCodeEntryOptional?: InputMaybe<Scalars['Boolean']['input']>;
1310
+ jobCodeOptions?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
1311
+ name: Scalars['String']['input'];
1312
+ organizationId?: InputMaybe<Scalars['ID']['input']>;
1313
+ spendRestrictions: SpendRestrictionsInput;
1314
+ vehicles?: InputMaybe<Array<InputMaybe<Scalars['ID']['input']>>>;
1315
+ };
1316
+ type VehicleGroupDriversAddInput = {
1317
+ drivers: Array<Scalars['ID']['input']>;
1318
+ vehicleGroupId: Scalars['ID']['input'];
1319
+ };
1320
+ type VehicleGroupVehiclesAddInput = {
1321
+ vehicleGroupId: Scalars['ID']['input'];
1322
+ vehicles: Array<Scalars['ID']['input']>;
1323
+ };
1324
+ type VehiclesOnboardInput = {
1325
+ customFields?: InputMaybe<Array<InputMaybe<HashMapInput>>>;
1326
+ description?: InputMaybe<Scalars['String']['input']>;
1327
+ id?: InputMaybe<Scalars['ID']['input']>;
1328
+ licensePlate?: InputMaybe<Scalars['String']['input']>;
1329
+ licensePlateState?: InputMaybe<Scalars['String']['input']>;
1330
+ number?: InputMaybe<Scalars['String']['input']>;
1331
+ vehicleGroupId: Scalars['ID']['input'];
1332
+ vin?: InputMaybe<Scalars['String']['input']>;
1333
+ };
1334
+ type VehiclesOnboardInputList = {
1335
+ vehicles?: InputMaybe<Array<InputMaybe<VehiclesOnboardInput>>>;
1336
+ };
1337
+ type AdditionalServicePayInfoInput = {
1338
+ jobCode?: InputMaybe<Scalars['String']['input']>;
1339
+ odometer?: InputMaybe<Scalars['Int']['input']>;
1340
+ };
1341
+ type ApiKeyCreateMutationVariables = Exact<{
1342
+ input: ApiKeyCreateInput;
1343
+ }>;
1344
+ type ApiKeyCreateMutation = {
1345
+ __typename?: 'Mutation';
1346
+ apiKeyCreate?: {
1347
+ __typename?: 'ApiKeyCreateOutput';
1348
+ apiKey: string;
1349
+ } | null;
1350
+ };
97
1351
  type OrganizationCreateMutationVariables = Exact<{
98
1352
  input: OrganizationCreateInput;
99
1353
  }>;
100
- interface OrganizationCreateMutation {
101
- __typename?: "Mutation";
1354
+ type OrganizationCreateMutation = {
1355
+ __typename?: 'Mutation';
102
1356
  organizationCreate?: {
103
- __typename?: "Organization";
1357
+ __typename?: 'Organization';
104
1358
  id: string;
105
1359
  name?: string | null;
106
1360
  onboardedAt?: string | null;
@@ -109,7 +1363,7 @@ interface OrganizationCreateMutation {
109
1363
  updatedAt?: string | null;
110
1364
  deletedAt?: string | null;
111
1365
  address?: {
112
- __typename?: "Address";
1366
+ __typename?: 'Address';
113
1367
  line1?: string | null;
114
1368
  line2?: string | null;
115
1369
  city?: string | null;
@@ -118,14 +1372,14 @@ interface OrganizationCreateMutation {
118
1372
  zip?: string | null;
119
1373
  } | null;
120
1374
  } | null;
121
- }
1375
+ };
122
1376
  type EntityCreateMutationVariables = Exact<{
123
1377
  input: EntityCreateInput;
124
1378
  }>;
125
- interface EntityCreateMutation {
126
- __typename?: "Mutation";
1379
+ type EntityCreateMutation = {
1380
+ __typename?: 'Mutation';
127
1381
  entityCreate?: {
128
- __typename?: "Entity";
1382
+ __typename?: 'Entity';
129
1383
  id: string;
130
1384
  name?: string | null;
131
1385
  description?: string | null;
@@ -136,19 +1390,195 @@ interface EntityCreateMutation {
136
1390
  insertedAt?: string | null;
137
1391
  updatedAt?: string | null;
138
1392
  } | null;
139
- }
1393
+ };
1394
+ type MachineTokenizeUserMutationVariables = Exact<{
1395
+ input?: InputMaybe<MachineTokenizeUserInput>;
1396
+ }>;
1397
+ type MachineTokenizeUserMutation = {
1398
+ __typename?: 'Mutation';
1399
+ machineTokenizeUser?: {
1400
+ __typename?: 'MachineUserToken';
1401
+ access_token: string;
1402
+ expires_in: number;
1403
+ } | null;
1404
+ };
1405
+ type ProvisionCardMutationVariables = Exact<{
1406
+ input: ProvisionCardInput;
1407
+ }>;
1408
+ type ProvisionCardMutation = {
1409
+ __typename?: 'Mutation';
1410
+ provisionCard: {
1411
+ __typename?: 'ProvisionCardResponse';
1412
+ encryptedData?: string | null;
1413
+ activationData?: string | null;
1414
+ publicKey?: string | null;
1415
+ lastFourDigits?: string | null;
1416
+ displayName?: string | null;
1417
+ cardNetwork?: CardNetwork | null;
1418
+ };
1419
+ };
1420
+ type ProvisionStatusUpdateMutationVariables = Exact<{
1421
+ input: ProvisionStatusUpdateInput;
1422
+ }>;
1423
+ type ProvisionStatusUpdateMutation = {
1424
+ __typename?: 'Mutation';
1425
+ provisionStatusUpdate: {
1426
+ __typename?: 'BooleanSuccessOutput';
1427
+ success: boolean;
1428
+ };
1429
+ };
1430
+ type ServicePayMutationVariables = Exact<{
1431
+ input: ServicePayInput;
1432
+ }>;
1433
+ type ServicePayMutation = {
1434
+ __typename?: 'Mutation';
1435
+ servicePay?: {
1436
+ __typename?: 'ServicePayOutput';
1437
+ requestId: string;
1438
+ transactionId: string;
1439
+ } | null;
1440
+ };
1441
+ type TtpTokenizationMutationVariables = Exact<{
1442
+ input: TtpTokenizationInput;
1443
+ }>;
1444
+ type TtpTokenizationMutation = {
1445
+ __typename?: 'Mutation';
1446
+ ttpTokenization?: {
1447
+ __typename?: 'TtpTokenizationOutput';
1448
+ requestId?: string | null;
1449
+ success?: boolean | null;
1450
+ paymentProviderAccountId?: string | null;
1451
+ deviceAccountId?: string | null;
1452
+ lastFourDigits?: string | null;
1453
+ displayName?: string | null;
1454
+ cardFlag?: CardNetwork | null;
1455
+ programSupports?: {
1456
+ __typename?: 'ProgramSupports';
1457
+ isCloseLoopSupported?: boolean | null;
1458
+ isDcSupported?: boolean | null;
1459
+ isPhysicalCardSupported?: boolean | null;
1460
+ isTtpSupported?: boolean | null;
1461
+ isUsingInternalProgram?: boolean | null;
1462
+ } | null;
1463
+ } | null;
1464
+ };
1465
+ type UserCreateMutationVariables = Exact<{
1466
+ input: UserCreateInput;
1467
+ }>;
1468
+ type UserCreateMutation = {
1469
+ __typename?: 'Mutation';
1470
+ userCreate?: {
1471
+ __typename?: 'User';
1472
+ id?: string | null;
1473
+ firstName?: string | null;
1474
+ lastName?: string | null;
1475
+ middleName?: string | null;
1476
+ fullName?: string | null;
1477
+ email?: string | null;
1478
+ phoneNumber?: string | null;
1479
+ employeeId?: string | null;
1480
+ role?: RoleType | null;
1481
+ status?: UserStatus | null;
1482
+ loginType?: LoginType | null;
1483
+ externalId?: string | null;
1484
+ organizationId?: string | null;
1485
+ insertedAt?: string | null;
1486
+ updatedAt?: string | null;
1487
+ } | null;
1488
+ };
1489
+ type VehicleGroupCreateMutationVariables = Exact<{
1490
+ input: VehicleGroupCreateInput;
1491
+ }>;
1492
+ type VehicleGroupCreateMutation = {
1493
+ __typename?: 'Mutation';
1494
+ vehicleGroupCreate?: {
1495
+ __typename?: 'IndividualVehicleGroup';
1496
+ id: string;
1497
+ code?: string | null;
1498
+ name?: string | null;
1499
+ description?: string | null;
1500
+ externalId?: string | null;
1501
+ driverCount?: number | null;
1502
+ vehicleCount?: number | null;
1503
+ insertedAt?: string | null;
1504
+ updatedAt?: string | null;
1505
+ } | null;
1506
+ };
1507
+ type VehicleGroupDriversAddMutationVariables = Exact<{
1508
+ input: VehicleGroupDriversAddInput;
1509
+ }>;
1510
+ type VehicleGroupDriversAddMutation = {
1511
+ __typename?: 'Mutation';
1512
+ vehicleGroupDriversAdd?: {
1513
+ __typename?: 'VehicleGroup';
1514
+ id: string;
1515
+ name?: string | null;
1516
+ description?: string | null;
1517
+ externalId?: string | null;
1518
+ driverCount?: number | null;
1519
+ vehicleCount?: number | null;
1520
+ insertedAt?: string | null;
1521
+ updatedAt?: string | null;
1522
+ } | null;
1523
+ };
1524
+ type VehicleGroupVehiclesAddMutationVariables = Exact<{
1525
+ input: VehicleGroupVehiclesAddInput;
1526
+ }>;
1527
+ type VehicleGroupVehiclesAddMutation = {
1528
+ __typename?: 'Mutation';
1529
+ vehicleGroupVehiclesAdd?: {
1530
+ __typename?: 'VehicleGroup';
1531
+ id: string;
1532
+ name?: string | null;
1533
+ description?: string | null;
1534
+ externalId?: string | null;
1535
+ driverCount?: number | null;
1536
+ vehicleCount?: number | null;
1537
+ insertedAt?: string | null;
1538
+ updatedAt?: string | null;
1539
+ } | null;
1540
+ };
1541
+ type VehiclesOnboardMutationVariables = Exact<{
1542
+ input: VehiclesOnboardInputList;
1543
+ }>;
1544
+ type VehiclesOnboardMutation = {
1545
+ __typename?: 'Mutation';
1546
+ vehiclesOnboard?: {
1547
+ __typename?: 'VehiclesOnboardOutputList';
1548
+ vehicles?: Array<{
1549
+ __typename?: 'VehiclesOnboardOutput';
1550
+ id?: string | null;
1551
+ vin?: string | null;
1552
+ vehicleGroupId: string;
1553
+ success?: boolean | null;
1554
+ error?: string | null;
1555
+ } | null> | null;
1556
+ } | null;
1557
+ };
140
1558
  type SdkFunctionWrapper = <T>(action: (requestHeaders?: Record<string, string>) => Promise<T>, operationName: string, operationType?: string, variables?: any) => Promise<T>;
141
1559
  declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): {
1560
+ apiKeyCreate(variables: ApiKeyCreateMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<ApiKeyCreateMutation>;
142
1561
  organizationCreate(variables: OrganizationCreateMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<OrganizationCreateMutation>;
143
1562
  entityCreate(variables: EntityCreateMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<EntityCreateMutation>;
1563
+ machineTokenizeUser(variables?: MachineTokenizeUserMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<MachineTokenizeUserMutation>;
1564
+ provisionCard(variables: ProvisionCardMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<ProvisionCardMutation>;
1565
+ provisionStatusUpdate(variables: ProvisionStatusUpdateMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<ProvisionStatusUpdateMutation>;
1566
+ servicePay(variables: ServicePayMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<ServicePayMutation>;
1567
+ ttpTokenization(variables: TtpTokenizationMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<TtpTokenizationMutation>;
1568
+ userCreate(variables: UserCreateMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<UserCreateMutation>;
1569
+ vehicleGroupCreate(variables: VehicleGroupCreateMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<VehicleGroupCreateMutation>;
1570
+ vehicleGroupDriversAdd(variables: VehicleGroupDriversAddMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<VehicleGroupDriversAddMutation>;
1571
+ vehicleGroupVehiclesAdd(variables: VehicleGroupVehiclesAddMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<VehicleGroupVehiclesAddMutation>;
1572
+ vehiclesOnboard(variables: VehiclesOnboardMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<VehiclesOnboardMutation>;
144
1573
  };
145
1574
  //#endregion
146
1575
  //#region src/client.d.ts
147
1576
  interface ElementPayClientConfig {
148
- endpoint: string;
149
1577
  apiKey: string;
1578
+ environment?: 'int' | 'prod' | 'stage';
1579
+ endpoint?: string;
150
1580
  }
151
- declare function createElementPayClient(config: ElementPayClientConfig): ReturnType<typeof getSdk>;
1581
+ declare function createElementPayClient(config: ElementPayClientConfig): ReturnType<typeof getSdk$2> | ReturnType<typeof getSdk$1> | ReturnType<typeof getSdk>;
152
1582
  //#endregion
153
1583
  //#region src/pubSub/interfaces.d.ts
154
1584
  interface RawProvider {