@autofleet/element-pay 1.1.1 → 1.1.2

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,7 +1,593 @@
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
4
+ //#region src/generated/int/sdk.d.ts
5
+ type Maybe$1<T> = T | null;
6
+ type InputMaybe$1<T> = Maybe$1<T>;
7
+ type Exact$1<T extends Record<string, unknown>> = { [K in keyof T]: T[K] };
8
+ type GraphQLClientRequestHeaders$1 = RequestOptions["requestHeaders"];
9
+ /** All built-in and custom scalars, mapped to their actual values */
10
+ interface Scalars$1 {
11
+ ID: {
12
+ input: string;
13
+ output: string;
14
+ };
15
+ String: {
16
+ input: string;
17
+ output: string;
18
+ };
19
+ Boolean: {
20
+ input: boolean;
21
+ output: boolean;
22
+ };
23
+ Int: {
24
+ input: number;
25
+ output: number;
26
+ };
27
+ Float: {
28
+ input: number;
29
+ output: number;
30
+ };
31
+ JSON: {
32
+ input: any;
33
+ output: any;
34
+ };
35
+ JSONObject: {
36
+ input: any;
37
+ output: any;
38
+ };
39
+ }
40
+ declare enum AccountType {
41
+ Credit = "CREDIT",
42
+ PrePaid = "PRE_PAID",
43
+ }
44
+ interface AdditionalInfoInput {
45
+ /** Managers/dashboard user phone number that's not used for authentication */
46
+ contactPhoneNumber?: InputMaybe$1<Scalars$1["String"]["input"]>;
47
+ /** If the phone number is a corporate phone. */
48
+ isCorporatePhone?: InputMaybe$1<Scalars$1["Boolean"]["input"]>;
49
+ }
50
+ /** The address provided as an input when creating an organization. */
51
+ interface AddressInput$1 {
52
+ city: Scalars$1["String"]["input"];
53
+ country: Scalars$1["String"]["input"];
54
+ line1: Scalars$1["String"]["input"];
55
+ line2?: InputMaybe$1<Scalars$1["String"]["input"]>;
56
+ state: Scalars$1["String"]["input"];
57
+ zip: Scalars$1["String"]["input"];
58
+ }
59
+ interface ApiKeyCreateInput$1 {
60
+ /** Entity Id */
61
+ entityId?: InputMaybe$1<Scalars$1["ID"]["input"]>;
62
+ /** Api Key Name */
63
+ name: Scalars$1["String"]["input"];
64
+ /** Organization Id */
65
+ organizationId: Scalars$1["ID"]["input"];
66
+ }
67
+ interface ClientOnboardInput {
68
+ /** The address of the organization */
69
+ address: AddressInput$1;
70
+ /** Disable check location when vehicle data is down */
71
+ checkLocationOverride?: InputMaybe$1<Scalars$1["Boolean"]["input"]>;
72
+ /** Cost factor to filter by fuel station cost */
73
+ costFactorEnabled?: InputMaybe$1<Scalars$1["Boolean"]["input"]>;
74
+ /** Organization email. */
75
+ email?: InputMaybe$1<Scalars$1["String"]["input"]>;
76
+ externalId: Scalars$1["String"]["input"];
77
+ integratorId?: InputMaybe$1<Scalars$1["ID"]["input"]>;
78
+ /** Organization name. */
79
+ name: Scalars$1["String"]["input"];
80
+ /** Who onboarded the organization */
81
+ onboardedBy?: InputMaybe$1<Scalars$1["String"]["input"]>;
82
+ /** Organization tax id. */
83
+ taxId?: InputMaybe$1<Scalars$1["String"]["input"]>;
84
+ unitsId?: InputMaybe$1<Scalars$1["String"]["input"]>;
85
+ /** If enabled, syncs telematics data for a vehicle and removes ability to edit that vehicle */
86
+ useTspMetadata?: InputMaybe$1<Scalars$1["Boolean"]["input"]>;
87
+ }
88
+ interface EntityCreateInput$1 {
89
+ /** Description of the entity. */
90
+ description?: InputMaybe$1<Scalars$1["String"]["input"]>;
91
+ /** To optionally store your own id to map between different systems. */
92
+ externalId?: InputMaybe$1<Scalars$1["String"]["input"]>;
93
+ /** How the account is funded: ACH or Parent. */
94
+ funding?: InputMaybe$1<FundingSource$1>;
95
+ /** Deprecated method for creating a credit account. */
96
+ hasFinance?: InputMaybe$1<Scalars$1["Boolean"]["input"]>;
97
+ /** Name of the entity. */
98
+ name: Scalars$1["String"]["input"];
99
+ /** Organization Id this entity belongs to. */
100
+ organizationId?: InputMaybe$1<Scalars$1["ID"]["input"]>;
101
+ /** ID of parent entity, if there is one. */
102
+ parentId?: InputMaybe$1<Scalars$1["ID"]["input"]>;
103
+ }
104
+ interface FuelRestrictionsInput$1 {
105
+ /** Amount per day, usually around $125. */
106
+ amountPerDay?: InputMaybe$1<Scalars$1["String"]["input"]>;
107
+ /** Also known as purchas limit. Usually between $5 and $1000. */
108
+ amountPerTransaction?: InputMaybe$1<Scalars$1["String"]["input"]>;
109
+ /** Enforce checking the location of the vehicle during transaction */
110
+ checkLocation?: InputMaybe$1<Scalars$1["Boolean"]["input"]>;
111
+ /** Define which days and times vehicles can transact at for fueling. */
112
+ daysOfWeek?: InputMaybe$1<PurchaseDaysOfWeekInput$1>;
113
+ /** Defines to and from times that a vehicle can purchase at. */
114
+ hours?: InputMaybe$1<PurchaseTimeRangeInput$1>;
115
+ isEnabled?: InputMaybe$1<Scalars$1["Boolean"]["input"]>;
116
+ /** Number of transactions */
117
+ noOfTransactions?: InputMaybe$1<Scalars$1["Int"]["input"]>;
118
+ }
119
+ declare enum FundingSource$1 {
120
+ /** Electronic bank transfer. */
121
+ Ach = "ACH",
122
+ /** Funding is done through the parent entities funding source. */
123
+ Parent = "PARENT",
124
+ Unknown = "UNKNOWN",
125
+ }
126
+ interface HashMapInput$1 {
127
+ key: Scalars$1["String"]["input"];
128
+ value: Scalars$1["String"]["input"];
129
+ }
130
+ declare enum JobCodeEntryOptionEnum$1 {
131
+ Freeform = "FREEFORM",
132
+ Predefined = "PREDEFINED",
133
+ }
134
+ declare enum LoginType$1 {
135
+ Email = "EMAIL",
136
+ Phone = "PHONE",
137
+ Unknown = "UNKNOWN",
138
+ }
139
+ interface MachineTokenizeUserInput$1 {
140
+ email?: InputMaybe$1<Scalars$1["String"]["input"]>;
141
+ /** Auth0 Id */
142
+ externalId: Scalars$1["String"]["input"];
143
+ firstName?: InputMaybe$1<Scalars$1["String"]["input"]>;
144
+ lastName?: InputMaybe$1<Scalars$1["String"]["input"]>;
145
+ organizationId: Scalars$1["ID"]["input"];
146
+ phoneNumber?: InputMaybe$1<Scalars$1["String"]["input"]>;
147
+ /** deprecated */
148
+ username?: InputMaybe$1<Scalars$1["String"]["input"]>;
149
+ }
150
+ interface OrganizationCreateInput$1 {
151
+ /** The address of the organization */
152
+ address: AddressInput$1;
153
+ /** Disable check location when vehicle data is down */
154
+ checkLocationOverride?: InputMaybe$1<Scalars$1["Boolean"]["input"]>;
155
+ /** Cost factor to filter by fuel station cost */
156
+ costFactorEnabled?: InputMaybe$1<Scalars$1["Boolean"]["input"]>;
157
+ /** Organization email. */
158
+ email?: InputMaybe$1<Scalars$1["String"]["input"]>;
159
+ integratorId?: InputMaybe$1<Scalars$1["ID"]["input"]>;
160
+ /** Organization name. */
161
+ name: Scalars$1["String"]["input"];
162
+ /** Who onboarded the organization */
163
+ onboardedBy?: InputMaybe$1<Scalars$1["String"]["input"]>;
164
+ /** Organization tax id. */
165
+ taxId?: InputMaybe$1<Scalars$1["String"]["input"]>;
166
+ unitsId?: InputMaybe$1<Scalars$1["String"]["input"]>;
167
+ /** If enabled, syncs telematics data for a vehicle and removes ability to edit that vehicle */
168
+ useTspMetadata?: InputMaybe$1<Scalars$1["Boolean"]["input"]>;
169
+ }
170
+ declare enum PaymentMethodType {
171
+ DirectConnect = "DIRECT_CONNECT",
172
+ LinkedCard = "LINKED_CARD",
173
+ Ttp = "TTP",
174
+ Unspecified = "UNSPECIFIED",
175
+ }
176
+ interface PositionInput$1 {
177
+ latitude: Scalars$1["Float"]["input"];
178
+ longitude: Scalars$1["Float"]["input"];
179
+ }
180
+ interface PurchaseDaysOfWeekInput$1 {
181
+ friday: Scalars$1["Boolean"]["input"];
182
+ monday: Scalars$1["Boolean"]["input"];
183
+ saturday: Scalars$1["Boolean"]["input"];
184
+ sunday: Scalars$1["Boolean"]["input"];
185
+ thursday: Scalars$1["Boolean"]["input"];
186
+ tuesday: Scalars$1["Boolean"]["input"];
187
+ wednesday: Scalars$1["Boolean"]["input"];
188
+ }
189
+ interface PurchaseTimeRangeInput$1 {
190
+ from?: InputMaybe$1<Scalars$1["String"]["input"]>;
191
+ to?: InputMaybe$1<Scalars$1["String"]["input"]>;
192
+ }
193
+ declare enum RoleType$1 {
194
+ Admin = "ADMIN",
195
+ Driver = "DRIVER",
196
+ FullAccess = "FULL_ACCESS",
197
+ Manager = "MANAGER",
198
+ ViewOnly = "VIEW_ONLY",
199
+ }
200
+ interface ServiceFuelInput$1 {
201
+ additionalInfo?: InputMaybe$1<AdditionalServicePayInfoInput$1>;
202
+ /** Pump number of the given gas station. */
203
+ pumpNumber: Scalars$1["Int"]["input"];
204
+ }
205
+ interface ServicePayInput$1 {
206
+ deviceId?: InputMaybe$1<Scalars$1["String"]["input"]>;
207
+ /** Specify the pump number. */
208
+ fuel?: InputMaybe$1<ServiceFuelInput$1>;
209
+ localTime?: InputMaybe$1<Scalars$1["String"]["input"]>;
210
+ locationId: Scalars$1["ID"]["input"];
211
+ /** Deprecated: For fallback transactions(both Physical Card and TTP) at DC stations. */
212
+ openloopFallback?: InputMaybe$1<Scalars$1["Boolean"]["input"]>;
213
+ /** Direct connect, TTP, or linked card. */
214
+ paymentMethodType?: InputMaybe$1<PaymentMethodType>;
215
+ /** Latitude and longitude. */
216
+ position: PositionInput$1;
217
+ requestId: Scalars$1["ID"]["input"];
218
+ vehicleId: Scalars$1["ID"]["input"];
219
+ }
220
+ interface SpendRestrictionsDayInput$1 {
221
+ isEnabled: Scalars$1["Boolean"]["input"];
222
+ /** Defines a list of to and from times that a vehicle can purchase at. */
223
+ purchaseTimes?: InputMaybe$1<InputMaybe$1<PurchaseTimeRangeInput$1>[]>;
224
+ }
225
+ interface SpendRestrictionsDaysOfWeekInput$1 {
226
+ friday: SpendRestrictionsDayInput$1;
227
+ monday: SpendRestrictionsDayInput$1;
228
+ saturday: SpendRestrictionsDayInput$1;
229
+ sunday: SpendRestrictionsDayInput$1;
230
+ thursday: SpendRestrictionsDayInput$1;
231
+ tuesday: SpendRestrictionsDayInput$1;
232
+ wednesday: SpendRestrictionsDayInput$1;
233
+ }
234
+ interface SpendRestrictionsInput$1 {
235
+ /** Amount per day. Max No of Transactions times Amount per Day. */
236
+ amountPerDay?: InputMaybe$1<Scalars$1["String"]["input"]>;
237
+ /** Also known as purchase limit, usually around $125. $1000 max. */
238
+ amountPerTransaction?: InputMaybe$1<Scalars$1["String"]["input"]>;
239
+ /** Max dollar amount per week. 0 or null turns this restriction off. */
240
+ amountPerWeek?: InputMaybe$1<Scalars$1["Int"]["input"]>;
241
+ /** Enforce checking the location of the vehicle during transaction */
242
+ checkLocation?: InputMaybe$1<Scalars$1["Boolean"]["input"]>;
243
+ /** Deprecated. Define which days and times vehicles can transact at for fueling. */
244
+ daysOfWeek?: InputMaybe$1<SpendRestrictionsDaysOfWeekInput$1>;
245
+ /** Enforce spend estimation on this vehicle */
246
+ enforceFuelSpendEstimation?: InputMaybe$1<Scalars$1["Boolean"]["input"]>;
247
+ /** Deprecated, use direct spend restrictions settings */
248
+ fuel?: InputMaybe$1<FuelRestrictionsInput$1>;
249
+ /** Number of transactions. Between 1 and 5. */
250
+ noOfTransactions?: InputMaybe$1<Scalars$1["Int"]["input"]>;
251
+ predefinedRule?: InputMaybe$1<Scalars$1["String"]["input"]>;
252
+ }
253
+ interface UserCreateInput$1 {
254
+ additionalInfo?: InputMaybe$1<AdditionalInfoInput>;
255
+ /** Email is necessary for Manager Roles(Full Access and Read Only). */
256
+ email?: InputMaybe$1<Scalars$1["String"]["input"]>;
257
+ employeeId?: InputMaybe$1<Scalars$1["String"]["input"]>;
258
+ entityId: Scalars$1["ID"]["input"];
259
+ firstName: Scalars$1["String"]["input"];
260
+ lastName: Scalars$1["String"]["input"];
261
+ /** Auth method(email or phone) used by user */
262
+ loginType?: InputMaybe$1<LoginType$1>;
263
+ organizationId?: InputMaybe$1<Scalars$1["ID"]["input"]>;
264
+ phoneNumber?: InputMaybe$1<Scalars$1["String"]["input"]>;
265
+ /** Role type of user such as Driver, Manager, or Admin. */
266
+ role: RoleType$1;
267
+ }
268
+ /** Status of a given user. */
269
+ declare enum UserStatus$1 {
270
+ /** Also known as offboarded */
271
+ Deactivated = "DEACTIVATED",
272
+ Deleted = "DELETED",
273
+ Invited = "INVITED",
274
+ LockedOut = "LOCKED_OUT",
275
+ Onboarded = "ONBOARDED",
276
+ Unknown = "UNKNOWN",
277
+ }
278
+ interface VehicleGroupCreateInput$1 {
279
+ /** Vehicle group description. */
280
+ description?: InputMaybe$1<Scalars$1["String"]["input"]>;
281
+ /** Enabled driver entering odometer. */
282
+ driverEnteredOdometerEnabled?: InputMaybe$1<Scalars$1["Boolean"]["input"]>;
283
+ /** Drivers included in this vehicle group. */
284
+ drivers?: InputMaybe$1<InputMaybe$1<Scalars$1["ID"]["input"]>[]>;
285
+ /** Entity that this vehicle group will belong to. */
286
+ entityId?: InputMaybe$1<Scalars$1["ID"]["input"]>;
287
+ externalId?: InputMaybe$1<Scalars$1["String"]["input"]>;
288
+ /** Enable adding Job Code to transactions. */
289
+ jobCodeEnabled?: InputMaybe$1<Scalars$1["Boolean"]["input"]>;
290
+ /** Job code entry option, which defines whether the job code is predefined or freeform. */
291
+ jobCodeEntryOption?: InputMaybe$1<JobCodeEntryOptionEnum$1>;
292
+ /** Enable job code entry being optional. */
293
+ jobCodeEntryOptional?: InputMaybe$1<Scalars$1["Boolean"]["input"]>;
294
+ /** A list of job code values/options for the vehicle group. */
295
+ jobCodeOptions?: InputMaybe$1<InputMaybe$1<Scalars$1["String"]["input"]>[]>;
296
+ /** Name of vehicle group. */
297
+ name: Scalars$1["String"]["input"];
298
+ /** Organization that this vehicle group will belong to. */
299
+ organizationId?: InputMaybe$1<Scalars$1["ID"]["input"]>;
300
+ /** Define spend restrictions for input such as amount per day, amount per transaction, no of transaction, days of week and times to enabled fuel use. */
301
+ spendRestrictions: SpendRestrictionsInput$1;
302
+ /** Vehicles included in this vehicle group. */
303
+ vehicles?: InputMaybe$1<InputMaybe$1<Scalars$1["ID"]["input"]>[]>;
304
+ }
305
+ interface VehicleGroupDriversAddInput$1 {
306
+ drivers: Scalars$1["ID"]["input"][];
307
+ vehicleGroupId: Scalars$1["ID"]["input"];
308
+ }
309
+ interface VehicleGroupVehiclesAddInput$1 {
310
+ vehicleGroupId: Scalars$1["ID"]["input"];
311
+ vehicles: Scalars$1["ID"]["input"][];
312
+ }
313
+ /** Onboard vehicles to the platform. */
314
+ interface VehiclesOnboardInput$1 {
315
+ /** Custom Fields for Vehicle */
316
+ customFields?: InputMaybe$1<InputMaybe$1<HashMapInput$1>[]>;
317
+ /** Vehicle's description. */
318
+ description?: InputMaybe$1<Scalars$1["String"]["input"]>;
319
+ /** Id of the vehicle to onboard. */
320
+ id?: InputMaybe$1<Scalars$1["ID"]["input"]>;
321
+ /** Vehicles's license plate. */
322
+ licensePlate?: InputMaybe$1<Scalars$1["String"]["input"]>;
323
+ /** Vehicles's license plate state. */
324
+ licensePlateState?: InputMaybe$1<Scalars$1["String"]["input"]>;
325
+ /** Vehicle's number. */
326
+ number?: InputMaybe$1<Scalars$1["String"]["input"]>;
327
+ /** Vehicle Group Id */
328
+ vehicleGroupId: Scalars$1["ID"]["input"];
329
+ /** Vehicle's VIN. */
330
+ vin?: InputMaybe$1<Scalars$1["String"]["input"]>;
331
+ }
332
+ /** Onboard vehicles to the platform. */
333
+ interface VehiclesOnboardInputList$1 {
334
+ vehicles?: InputMaybe$1<InputMaybe$1<VehiclesOnboardInput$1>[]>;
335
+ }
336
+ interface AdditionalServicePayInfoInput$1 {
337
+ /** Job Code to attach to this transaction. */
338
+ jobCode?: InputMaybe$1<Scalars$1["String"]["input"]>;
339
+ /** Odometer to attach to this transaction. */
340
+ odometer?: InputMaybe$1<Scalars$1["Int"]["input"]>;
341
+ }
342
+ type ApiKeyCreateMutationVariables$1 = Exact$1<{
343
+ input: ApiKeyCreateInput$1;
344
+ }>;
345
+ interface ApiKeyCreateMutation$1 {
346
+ __typename?: "Mutation";
347
+ apiKeyCreate?: {
348
+ __typename?: "ApiKeyCreateOutput";
349
+ apiKey: string;
350
+ } | null;
351
+ }
352
+ type ClientOnboardMutationVariables = Exact$1<{
353
+ input: ClientOnboardInput;
354
+ }>;
355
+ interface ClientOnboardMutation {
356
+ __typename?: "Mutation";
357
+ clientOnboard?: {
358
+ __typename?: "Entity";
359
+ id: string;
360
+ name?: string | null;
361
+ externalId?: string | null;
362
+ insertedAt?: string | null;
363
+ updatedAt?: string | null;
364
+ deletedAt?: string | null;
365
+ } | null;
366
+ }
367
+ type OrganizationCreateMutationVariables$1 = Exact$1<{
368
+ input: OrganizationCreateInput$1;
369
+ }>;
370
+ interface OrganizationCreateMutation$1 {
371
+ __typename?: "Mutation";
372
+ organizationCreate?: {
373
+ __typename?: "Organization";
374
+ id: string;
375
+ name?: string | null;
376
+ onboardedAt?: string | null;
377
+ onboardedBy?: string | null;
378
+ insertedAt?: string | null;
379
+ updatedAt?: string | null;
380
+ deletedAt?: string | null;
381
+ address?: {
382
+ __typename?: "Address";
383
+ line1?: string | null;
384
+ line2?: string | null;
385
+ city?: string | null;
386
+ state?: string | null;
387
+ country?: string | null;
388
+ zip?: string | null;
389
+ } | null;
390
+ } | null;
391
+ }
392
+ type EntityCreateMutationVariables$1 = Exact$1<{
393
+ input: EntityCreateInput$1;
394
+ }>;
395
+ interface EntityCreateMutation$1 {
396
+ __typename?: "Mutation";
397
+ entityCreate?: {
398
+ __typename?: "Entity";
399
+ id: string;
400
+ name?: string | null;
401
+ description?: string | null;
402
+ externalId?: string | null;
403
+ parentId?: string | null;
404
+ hasFinance?: boolean | null;
405
+ funding?: FundingSource$1 | null;
406
+ insertedAt?: string | null;
407
+ updatedAt?: string | null;
408
+ } | null;
409
+ }
410
+ type EntityGetExternalIdQueryVariables = Exact$1<{
411
+ externalId?: InputMaybe$1<Scalars$1["String"]["input"]>;
412
+ }>;
413
+ interface EntityGetExternalIdQuery {
414
+ __typename?: "Query";
415
+ entity?: {
416
+ __typename?: "Entity";
417
+ id: string;
418
+ name?: string | null;
419
+ description?: string | null;
420
+ externalId?: string | null;
421
+ hasFinance?: boolean | null;
422
+ code?: string | null;
423
+ path?: string | null;
424
+ funding?: FundingSource$1 | null;
425
+ insertedAt?: string | null;
426
+ updatedAt?: string | null;
427
+ deletedAt?: string | null;
428
+ costFactor?: number | null;
429
+ parent?: {
430
+ __typename?: "Entity";
431
+ id: string;
432
+ name?: string | null;
433
+ description?: string | null;
434
+ } | null;
435
+ organization?: {
436
+ __typename?: "Organization";
437
+ id: string;
438
+ name?: string | null;
439
+ } | null;
440
+ financialConfig?: {
441
+ __typename?: "FinancialConfig";
442
+ id: string;
443
+ entityId: string;
444
+ accountType?: AccountType | null;
445
+ issuerBin?: string | null;
446
+ insertedAt?: string | null;
447
+ updatedAt?: string | null;
448
+ paymentProvider?: {
449
+ __typename?: "PaymentProvider";
450
+ id: string;
451
+ name?: string | null;
452
+ slug?: string | null;
453
+ insertedAt?: string | null;
454
+ updatedAt?: string | null;
455
+ } | null;
456
+ } | null;
457
+ } | null;
458
+ }
459
+ type MachineTokenizeUserMutationVariables$1 = Exact$1<{
460
+ input?: InputMaybe$1<MachineTokenizeUserInput$1>;
461
+ }>;
462
+ interface MachineTokenizeUserMutation$1 {
463
+ __typename?: "Mutation";
464
+ machineTokenizeUser?: {
465
+ __typename?: "MachineUserToken";
466
+ access_token: string;
467
+ expires_in: number;
468
+ } | null;
469
+ }
470
+ type ServicePayMutationVariables$1 = Exact$1<{
471
+ input: ServicePayInput$1;
472
+ }>;
473
+ interface ServicePayMutation$1 {
474
+ __typename?: "Mutation";
475
+ servicePay?: {
476
+ __typename?: "ServicePayOutput";
477
+ requestId: string;
478
+ transactionId: string;
479
+ } | null;
480
+ }
481
+ type UserCreateMutationVariables$1 = Exact$1<{
482
+ input: UserCreateInput$1;
483
+ }>;
484
+ interface UserCreateMutation$1 {
485
+ __typename?: "Mutation";
486
+ userCreate?: {
487
+ __typename?: "User";
488
+ id?: string | null;
489
+ firstName?: string | null;
490
+ lastName?: string | null;
491
+ middleName?: string | null;
492
+ fullName?: string | null;
493
+ email?: string | null;
494
+ phoneNumber?: string | null;
495
+ employeeId?: string | null;
496
+ role?: RoleType$1 | null;
497
+ status?: UserStatus$1 | null;
498
+ loginType?: LoginType$1 | null;
499
+ externalId?: string | null;
500
+ organizationId?: string | null;
501
+ insertedAt?: string | null;
502
+ updatedAt?: string | null;
503
+ } | null;
504
+ }
505
+ type VehicleGroupCreateMutationVariables$1 = Exact$1<{
506
+ input: VehicleGroupCreateInput$1;
507
+ }>;
508
+ interface VehicleGroupCreateMutation$1 {
509
+ __typename?: "Mutation";
510
+ vehicleGroupCreate?: {
511
+ __typename?: "IndividualVehicleGroup";
512
+ id: string;
513
+ code?: string | null;
514
+ name?: string | null;
515
+ description?: string | null;
516
+ externalId?: string | null;
517
+ driverCount?: number | null;
518
+ vehicleCount?: number | null;
519
+ insertedAt?: string | null;
520
+ updatedAt?: string | null;
521
+ } | null;
522
+ }
523
+ type VehicleGroupDriversAddMutationVariables$1 = Exact$1<{
524
+ input: VehicleGroupDriversAddInput$1;
525
+ }>;
526
+ interface VehicleGroupDriversAddMutation$1 {
527
+ __typename?: "Mutation";
528
+ vehicleGroupDriversAdd?: {
529
+ __typename?: "VehicleGroup";
530
+ id: string;
531
+ name?: string | null;
532
+ description?: string | null;
533
+ externalId?: string | null;
534
+ driverCount?: number | null;
535
+ vehicleCount?: number | null;
536
+ insertedAt?: string | null;
537
+ updatedAt?: string | null;
538
+ } | null;
539
+ }
540
+ type VehicleGroupVehiclesAddMutationVariables$1 = Exact$1<{
541
+ input: VehicleGroupVehiclesAddInput$1;
542
+ }>;
543
+ interface VehicleGroupVehiclesAddMutation$1 {
544
+ __typename?: "Mutation";
545
+ vehicleGroupVehiclesAdd?: {
546
+ __typename?: "VehicleGroup";
547
+ id: string;
548
+ name?: string | null;
549
+ description?: string | null;
550
+ externalId?: string | null;
551
+ driverCount?: number | null;
552
+ vehicleCount?: number | null;
553
+ insertedAt?: string | null;
554
+ updatedAt?: string | null;
555
+ } | null;
556
+ }
557
+ type VehiclesOnboardMutationVariables$1 = Exact$1<{
558
+ input: VehiclesOnboardInputList$1;
559
+ }>;
560
+ interface VehiclesOnboardMutation$1 {
561
+ __typename?: "Mutation";
562
+ vehiclesOnboard?: {
563
+ __typename?: "VehiclesOnboardOutputList";
564
+ vehicles?: ({
565
+ __typename?: "VehiclesOnboardOutput";
566
+ id?: string | null;
567
+ vin?: string | null;
568
+ vehicleGroupId: string;
569
+ success?: boolean | null;
570
+ error?: string | null;
571
+ } | null)[] | null;
572
+ } | null;
573
+ }
574
+ type SdkFunctionWrapper$1 = <T>(action: (requestHeaders?: Record<string, string>) => Promise<T>, operationName: string, operationType?: string, variables?: any) => Promise<T>;
575
+ declare function getIntSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper$1): {
576
+ apiKeyCreate(variables: ApiKeyCreateMutationVariables$1, requestHeaders?: GraphQLClientRequestHeaders$1, signal?: RequestInit["signal"]): Promise<ApiKeyCreateMutation$1>;
577
+ clientOnboard(variables: ClientOnboardMutationVariables, requestHeaders?: GraphQLClientRequestHeaders$1, signal?: RequestInit["signal"]): Promise<ClientOnboardMutation>;
578
+ organizationCreate(variables: OrganizationCreateMutationVariables$1, requestHeaders?: GraphQLClientRequestHeaders$1, signal?: RequestInit["signal"]): Promise<OrganizationCreateMutation$1>;
579
+ entityCreate(variables: EntityCreateMutationVariables$1, requestHeaders?: GraphQLClientRequestHeaders$1, signal?: RequestInit["signal"]): Promise<EntityCreateMutation$1>;
580
+ entityGetExternalId(variables?: EntityGetExternalIdQueryVariables, requestHeaders?: GraphQLClientRequestHeaders$1, signal?: RequestInit["signal"]): Promise<EntityGetExternalIdQuery>;
581
+ machineTokenizeUser(variables?: MachineTokenizeUserMutationVariables$1, requestHeaders?: GraphQLClientRequestHeaders$1, signal?: RequestInit["signal"]): Promise<MachineTokenizeUserMutation$1>;
582
+ servicePay(variables: ServicePayMutationVariables$1, requestHeaders?: GraphQLClientRequestHeaders$1, signal?: RequestInit["signal"]): Promise<ServicePayMutation$1>;
583
+ userCreate(variables: UserCreateMutationVariables$1, requestHeaders?: GraphQLClientRequestHeaders$1, signal?: RequestInit["signal"]): Promise<UserCreateMutation$1>;
584
+ vehicleGroupCreate(variables: VehicleGroupCreateMutationVariables$1, requestHeaders?: GraphQLClientRequestHeaders$1, signal?: RequestInit["signal"]): Promise<VehicleGroupCreateMutation$1>;
585
+ vehicleGroupDriversAdd(variables: VehicleGroupDriversAddMutationVariables$1, requestHeaders?: GraphQLClientRequestHeaders$1, signal?: RequestInit["signal"]): Promise<VehicleGroupDriversAddMutation$1>;
586
+ vehicleGroupVehiclesAdd(variables: VehicleGroupVehiclesAddMutationVariables$1, requestHeaders?: GraphQLClientRequestHeaders$1, signal?: RequestInit["signal"]): Promise<VehicleGroupVehiclesAddMutation$1>;
587
+ vehiclesOnboard(variables: VehiclesOnboardMutationVariables$1, requestHeaders?: GraphQLClientRequestHeaders$1, signal?: RequestInit["signal"]): Promise<VehiclesOnboardMutation$1>;
588
+ };
589
+ //#endregion
590
+ //#region src/generated/prod/sdk.d.ts
5
591
  type Maybe<T> = T | null;
6
592
  type InputMaybe<T> = Maybe<T>;
7
593
  type Exact<T extends Record<string, unknown>> = { [K in keyof T]: T[K] };
@@ -46,6 +632,14 @@ interface AddressInput {
46
632
  state: Scalars["String"]["input"];
47
633
  zip: Scalars["String"]["input"];
48
634
  }
635
+ interface ApiKeyCreateInput {
636
+ /** Entity Id */
637
+ entityId?: InputMaybe<Scalars["ID"]["input"]>;
638
+ /** Api Key Name */
639
+ name: Scalars["String"]["input"];
640
+ /** Organization Id */
641
+ organizationId: Scalars["ID"]["input"];
642
+ }
49
643
  interface EntityCreateInput {
50
644
  /** Description of the entity. */
51
645
  description?: InputMaybe<Scalars["String"]["input"]>;
@@ -67,6 +661,21 @@ declare enum FeeNetworkDesignationType {
67
661
  InNetwork = "IN_NETWORK",
68
662
  OutOfNetwork = "OUT_OF_NETWORK",
69
663
  }
664
+ interface FuelRestrictionsInput {
665
+ /** Amount per day, usually around $125. */
666
+ amountPerDay?: InputMaybe<Scalars["String"]["input"]>;
667
+ /** Also known as purchas limit. Usually between $5 and $1000. */
668
+ amountPerTransaction?: InputMaybe<Scalars["String"]["input"]>;
669
+ /** Enforce checking the location of the vehicle during transaction */
670
+ checkLocation?: InputMaybe<Scalars["Boolean"]["input"]>;
671
+ /** Define which days and times vehicles can transact at for fueling. */
672
+ daysOfWeek?: InputMaybe<PurchaseDaysOfWeekInput>;
673
+ /** Defines to and from times that a vehicle can purchase at. */
674
+ hours?: InputMaybe<PurchaseTimeRangeInput>;
675
+ isEnabled?: InputMaybe<Scalars["Boolean"]["input"]>;
676
+ /** Number of transactions */
677
+ noOfTransactions?: InputMaybe<Scalars["Int"]["input"]>;
678
+ }
70
679
  declare enum FundingSource {
71
680
  /** Electronic bank transfer. */
72
681
  Ach = "ACH",
@@ -74,6 +683,29 @@ declare enum FundingSource {
74
683
  Parent = "PARENT",
75
684
  Unknown = "UNKNOWN",
76
685
  }
686
+ interface HashMapInput {
687
+ key: Scalars["String"]["input"];
688
+ value: Scalars["String"]["input"];
689
+ }
690
+ declare enum JobCodeEntryOptionEnum {
691
+ Freeform = "FREEFORM",
692
+ Predefined = "PREDEFINED",
693
+ }
694
+ declare enum LoginType {
695
+ Email = "EMAIL",
696
+ Phone = "PHONE",
697
+ Unknown = "UNKNOWN",
698
+ }
699
+ interface MachineTokenizeUserInput {
700
+ email?: InputMaybe<Scalars["String"]["input"]>;
701
+ /** Auth0 Id */
702
+ externalId: Scalars["String"]["input"];
703
+ firstName?: InputMaybe<Scalars["String"]["input"]>;
704
+ lastName?: InputMaybe<Scalars["String"]["input"]>;
705
+ organizationId: Scalars["ID"]["input"];
706
+ phoneNumber?: InputMaybe<Scalars["String"]["input"]>;
707
+ username?: InputMaybe<Scalars["String"]["input"]>;
708
+ }
77
709
  interface OrganizationCreateInput {
78
710
  /** The address of the organization */
79
711
  address: AddressInput;
@@ -94,6 +726,183 @@ interface OrganizationCreateInput {
94
726
  /** If enabled, syncs telematics data for a vehicle and removes ability to edit that vehicle */
95
727
  useTspMetadata?: InputMaybe<Scalars["Boolean"]["input"]>;
96
728
  }
729
+ interface PositionInput {
730
+ latitude: Scalars["Float"]["input"];
731
+ longitude: Scalars["Float"]["input"];
732
+ }
733
+ interface PurchaseDaysOfWeekInput {
734
+ friday: Scalars["Boolean"]["input"];
735
+ monday: Scalars["Boolean"]["input"];
736
+ saturday: Scalars["Boolean"]["input"];
737
+ sunday: Scalars["Boolean"]["input"];
738
+ thursday: Scalars["Boolean"]["input"];
739
+ tuesday: Scalars["Boolean"]["input"];
740
+ wednesday: Scalars["Boolean"]["input"];
741
+ }
742
+ interface PurchaseTimeRangeInput {
743
+ from?: InputMaybe<Scalars["String"]["input"]>;
744
+ to?: InputMaybe<Scalars["String"]["input"]>;
745
+ }
746
+ declare enum RoleType {
747
+ Admin = "ADMIN",
748
+ Driver = "DRIVER",
749
+ FullAccess = "FULL_ACCESS",
750
+ Manager = "MANAGER",
751
+ ViewOnly = "VIEW_ONLY",
752
+ }
753
+ interface ServiceFuelInput {
754
+ additionalInfo?: InputMaybe<AdditionalServicePayInfoInput>;
755
+ /** Pump number of the given gas station. */
756
+ pumpNumber: Scalars["Int"]["input"];
757
+ }
758
+ interface ServicePayInput {
759
+ deviceId?: InputMaybe<Scalars["String"]["input"]>;
760
+ /** Specify the pump number. */
761
+ fuel?: InputMaybe<ServiceFuelInput>;
762
+ localTime?: InputMaybe<Scalars["String"]["input"]>;
763
+ locationId: Scalars["ID"]["input"];
764
+ /** For fallback transactions(both Physical Card and TTP) at DC stations. */
765
+ openloopFallback?: InputMaybe<Scalars["Boolean"]["input"]>;
766
+ /** Latitude and longitude. */
767
+ position: PositionInput;
768
+ requestId: Scalars["ID"]["input"];
769
+ vehicleId: Scalars["ID"]["input"];
770
+ }
771
+ interface SpendRestrictionsDayInput {
772
+ isEnabled: Scalars["Boolean"]["input"];
773
+ /** Defines a list of to and from times that a vehicle can purchase at. */
774
+ purchaseTimes?: InputMaybe<InputMaybe<PurchaseTimeRangeInput>[]>;
775
+ }
776
+ interface SpendRestrictionsDaysOfWeekInput {
777
+ friday: SpendRestrictionsDayInput;
778
+ monday: SpendRestrictionsDayInput;
779
+ saturday: SpendRestrictionsDayInput;
780
+ sunday: SpendRestrictionsDayInput;
781
+ thursday: SpendRestrictionsDayInput;
782
+ tuesday: SpendRestrictionsDayInput;
783
+ wednesday: SpendRestrictionsDayInput;
784
+ }
785
+ interface SpendRestrictionsInput {
786
+ /** Amount per day. Max No of Transactions times Amount per Day. */
787
+ amountPerDay?: InputMaybe<Scalars["String"]["input"]>;
788
+ /** Also known as purchase limit, usually around $125. $1000 max. */
789
+ amountPerTransaction?: InputMaybe<Scalars["String"]["input"]>;
790
+ /** Max dollar amount per week. 0 or null turns this restriction off. */
791
+ amountPerWeek?: InputMaybe<Scalars["Int"]["input"]>;
792
+ /** Enforce checking the location of the vehicle during transaction */
793
+ checkLocation?: InputMaybe<Scalars["Boolean"]["input"]>;
794
+ /** Deprecated. Define which days and times vehicles can transact at for fueling. */
795
+ daysOfWeek?: InputMaybe<SpendRestrictionsDaysOfWeekInput>;
796
+ /** Enforce spend estimation on this vehicle */
797
+ enforceFuelSpendEstimation?: InputMaybe<Scalars["Boolean"]["input"]>;
798
+ /** Deprecated, use direct spend restrictions settings */
799
+ fuel?: InputMaybe<FuelRestrictionsInput>;
800
+ /** Number of transactions. Between 1 and 5. */
801
+ noOfTransactions?: InputMaybe<Scalars["Int"]["input"]>;
802
+ predefinedRule?: InputMaybe<Scalars["String"]["input"]>;
803
+ }
804
+ interface UserCreateInput {
805
+ /** Email is necessary for Manager Roles(Full Access and Read Only). */
806
+ email?: InputMaybe<Scalars["String"]["input"]>;
807
+ employeeId?: InputMaybe<Scalars["String"]["input"]>;
808
+ entityId: Scalars["ID"]["input"];
809
+ firstName: Scalars["String"]["input"];
810
+ /** If the phone number is a corporate phone. */
811
+ isCorporatePhone?: InputMaybe<Scalars["Boolean"]["input"]>;
812
+ lastName: Scalars["String"]["input"];
813
+ login?: InputMaybe<Scalars["String"]["input"]>;
814
+ /** Email or phone */
815
+ loginType?: InputMaybe<LoginType>;
816
+ middleName?: InputMaybe<Scalars["String"]["input"]>;
817
+ organizationId?: InputMaybe<Scalars["ID"]["input"]>;
818
+ phoneNumber: Scalars["String"]["input"];
819
+ /** Role type of user such as Driver, Manager, or Admin. */
820
+ role: RoleType;
821
+ }
822
+ /** Status of a given user. */
823
+ declare enum UserStatus {
824
+ /** Also known as offboarded */
825
+ Deactivated = "DEACTIVATED",
826
+ Deleted = "DELETED",
827
+ Invited = "INVITED",
828
+ LockedOut = "LOCKED_OUT",
829
+ Onboarded = "ONBOARDED",
830
+ Unknown = "UNKNOWN",
831
+ }
832
+ interface VehicleGroupCreateInput {
833
+ /** Vehicle group description. */
834
+ description?: InputMaybe<Scalars["String"]["input"]>;
835
+ /** Enabled driver entering odometer. */
836
+ driverEnteredOdometerEnabled?: InputMaybe<Scalars["Boolean"]["input"]>;
837
+ /** Drivers included in this vehicle group. */
838
+ drivers?: InputMaybe<InputMaybe<Scalars["ID"]["input"]>[]>;
839
+ /** Entity that this vehicle group will belong to. */
840
+ entityId?: InputMaybe<Scalars["ID"]["input"]>;
841
+ externalId?: InputMaybe<Scalars["String"]["input"]>;
842
+ /** Enable adding Job Code to transactions. */
843
+ jobCodeEnabled?: InputMaybe<Scalars["Boolean"]["input"]>;
844
+ /** Job code entry option, which defines whether the job code is predefined or freeform. */
845
+ jobCodeEntryOption?: InputMaybe<JobCodeEntryOptionEnum>;
846
+ /** Enable job code entry being optional. */
847
+ jobCodeEntryOptional?: InputMaybe<Scalars["Boolean"]["input"]>;
848
+ /** A list of job code values/options for the vehicle group. */
849
+ jobCodeOptions?: InputMaybe<InputMaybe<Scalars["String"]["input"]>[]>;
850
+ /** Name of vehicle group. */
851
+ name: Scalars["String"]["input"];
852
+ /** Organization that this vehicle group will belong to. */
853
+ organizationId?: InputMaybe<Scalars["ID"]["input"]>;
854
+ /** Define spend restrictions for input such as amount per day, amount per transaction, no of transaction, days of week and times to enabled fuel use. */
855
+ spendRestrictions: SpendRestrictionsInput;
856
+ /** Vehicles included in this vehicle group. */
857
+ vehicles?: InputMaybe<InputMaybe<Scalars["ID"]["input"]>[]>;
858
+ }
859
+ interface VehicleGroupDriversAddInput {
860
+ drivers: Scalars["ID"]["input"][];
861
+ vehicleGroupId: Scalars["ID"]["input"];
862
+ }
863
+ interface VehicleGroupVehiclesAddInput {
864
+ vehicleGroupId: Scalars["ID"]["input"];
865
+ vehicles: Scalars["ID"]["input"][];
866
+ }
867
+ /** Onboard vehicles to the platform. */
868
+ interface VehiclesOnboardInput {
869
+ /** Custom Fields for Vehicle */
870
+ customFields?: InputMaybe<InputMaybe<HashMapInput>[]>;
871
+ /** Vehicle's description. */
872
+ description?: InputMaybe<Scalars["String"]["input"]>;
873
+ /** Id of the vehicle to onboard. */
874
+ id?: InputMaybe<Scalars["ID"]["input"]>;
875
+ /** Vehicles's license plate. */
876
+ licensePlate?: InputMaybe<Scalars["String"]["input"]>;
877
+ /** Vehicles's license plate state. */
878
+ licensePlateState?: InputMaybe<Scalars["String"]["input"]>;
879
+ /** Vehicle's number. */
880
+ number?: InputMaybe<Scalars["String"]["input"]>;
881
+ /** Vehicle Group Id */
882
+ vehicleGroupId: Scalars["ID"]["input"];
883
+ /** Vehicle's VIN. */
884
+ vin?: InputMaybe<Scalars["String"]["input"]>;
885
+ }
886
+ /** Onboard vehicles to the platform. */
887
+ interface VehiclesOnboardInputList {
888
+ vehicles?: InputMaybe<InputMaybe<VehiclesOnboardInput>[]>;
889
+ }
890
+ interface AdditionalServicePayInfoInput {
891
+ /** Job Code to attach to this transaction. */
892
+ jobCode?: InputMaybe<Scalars["String"]["input"]>;
893
+ /** Odometer to attach to this transaction. */
894
+ odometer?: InputMaybe<Scalars["Int"]["input"]>;
895
+ }
896
+ type ApiKeyCreateMutationVariables = Exact<{
897
+ input: ApiKeyCreateInput;
898
+ }>;
899
+ interface ApiKeyCreateMutation {
900
+ __typename?: "Mutation";
901
+ apiKeyCreate?: {
902
+ __typename?: "ApiKeyCreateOutput";
903
+ apiKey: string;
904
+ } | null;
905
+ }
97
906
  type OrganizationCreateMutationVariables = Exact<{
98
907
  input: OrganizationCreateInput;
99
908
  }>;
@@ -137,18 +946,142 @@ interface EntityCreateMutation {
137
946
  updatedAt?: string | null;
138
947
  } | null;
139
948
  }
949
+ type MachineTokenizeUserMutationVariables = Exact<{
950
+ input?: InputMaybe<MachineTokenizeUserInput>;
951
+ }>;
952
+ interface MachineTokenizeUserMutation {
953
+ __typename?: "Mutation";
954
+ machineTokenizeUser?: {
955
+ __typename?: "MachineUserToken";
956
+ access_token: string;
957
+ expires_in: number;
958
+ } | null;
959
+ }
960
+ type ServicePayMutationVariables = Exact<{
961
+ input: ServicePayInput;
962
+ }>;
963
+ interface ServicePayMutation {
964
+ __typename?: "Mutation";
965
+ servicePay?: {
966
+ __typename?: "ServicePayOutput";
967
+ requestId: string;
968
+ transactionId: string;
969
+ } | null;
970
+ }
971
+ type UserCreateMutationVariables = Exact<{
972
+ input: UserCreateInput;
973
+ }>;
974
+ interface UserCreateMutation {
975
+ __typename?: "Mutation";
976
+ userCreate?: {
977
+ __typename?: "User";
978
+ id?: string | null;
979
+ firstName?: string | null;
980
+ lastName?: string | null;
981
+ middleName?: string | null;
982
+ fullName?: string | null;
983
+ email?: string | null;
984
+ phoneNumber?: string | null;
985
+ employeeId?: string | null;
986
+ role?: RoleType | null;
987
+ status?: UserStatus | null;
988
+ loginType?: LoginType | null;
989
+ externalId?: string | null;
990
+ organizationId?: string | null;
991
+ insertedAt?: string | null;
992
+ updatedAt?: string | null;
993
+ } | null;
994
+ }
995
+ type VehicleGroupCreateMutationVariables = Exact<{
996
+ input: VehicleGroupCreateInput;
997
+ }>;
998
+ interface VehicleGroupCreateMutation {
999
+ __typename?: "Mutation";
1000
+ vehicleGroupCreate?: {
1001
+ __typename?: "IndividualVehicleGroup";
1002
+ id: string;
1003
+ code?: string | null;
1004
+ name?: string | null;
1005
+ description?: string | null;
1006
+ externalId?: string | null;
1007
+ driverCount?: number | null;
1008
+ vehicleCount?: number | null;
1009
+ insertedAt?: string | null;
1010
+ updatedAt?: string | null;
1011
+ } | null;
1012
+ }
1013
+ type VehicleGroupDriversAddMutationVariables = Exact<{
1014
+ input: VehicleGroupDriversAddInput;
1015
+ }>;
1016
+ interface VehicleGroupDriversAddMutation {
1017
+ __typename?: "Mutation";
1018
+ vehicleGroupDriversAdd?: {
1019
+ __typename?: "VehicleGroup";
1020
+ id: string;
1021
+ name?: string | null;
1022
+ description?: string | null;
1023
+ externalId?: string | null;
1024
+ driverCount?: number | null;
1025
+ vehicleCount?: number | null;
1026
+ insertedAt?: string | null;
1027
+ updatedAt?: string | null;
1028
+ } | null;
1029
+ }
1030
+ type VehicleGroupVehiclesAddMutationVariables = Exact<{
1031
+ input: VehicleGroupVehiclesAddInput;
1032
+ }>;
1033
+ interface VehicleGroupVehiclesAddMutation {
1034
+ __typename?: "Mutation";
1035
+ vehicleGroupVehiclesAdd?: {
1036
+ __typename?: "VehicleGroup";
1037
+ id: string;
1038
+ name?: string | null;
1039
+ description?: string | null;
1040
+ externalId?: string | null;
1041
+ driverCount?: number | null;
1042
+ vehicleCount?: number | null;
1043
+ insertedAt?: string | null;
1044
+ updatedAt?: string | null;
1045
+ } | null;
1046
+ }
1047
+ type VehiclesOnboardMutationVariables = Exact<{
1048
+ input: VehiclesOnboardInputList;
1049
+ }>;
1050
+ interface VehiclesOnboardMutation {
1051
+ __typename?: "Mutation";
1052
+ vehiclesOnboard?: {
1053
+ __typename?: "VehiclesOnboardOutputList";
1054
+ vehicles?: ({
1055
+ __typename?: "VehiclesOnboardOutput";
1056
+ id?: string | null;
1057
+ vin?: string | null;
1058
+ vehicleGroupId: string;
1059
+ success?: boolean | null;
1060
+ error?: string | null;
1061
+ } | null)[] | null;
1062
+ } | null;
1063
+ }
140
1064
  type SdkFunctionWrapper = <T>(action: (requestHeaders?: Record<string, string>) => Promise<T>, operationName: string, operationType?: string, variables?: any) => Promise<T>;
141
- declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): {
1065
+ declare function getProdSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): {
1066
+ apiKeyCreate(variables: ApiKeyCreateMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<ApiKeyCreateMutation>;
142
1067
  organizationCreate(variables: OrganizationCreateMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<OrganizationCreateMutation>;
143
1068
  entityCreate(variables: EntityCreateMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<EntityCreateMutation>;
1069
+ machineTokenizeUser(variables?: MachineTokenizeUserMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<MachineTokenizeUserMutation>;
1070
+ servicePay(variables: ServicePayMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<ServicePayMutation>;
1071
+ userCreate(variables: UserCreateMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<UserCreateMutation>;
1072
+ vehicleGroupCreate(variables: VehicleGroupCreateMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<VehicleGroupCreateMutation>;
1073
+ vehicleGroupDriversAdd(variables: VehicleGroupDriversAddMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<VehicleGroupDriversAddMutation>;
1074
+ vehicleGroupVehiclesAdd(variables: VehicleGroupVehiclesAddMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<VehicleGroupVehiclesAddMutation>;
1075
+ vehiclesOnboard(variables: VehiclesOnboardMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<VehiclesOnboardMutation>;
144
1076
  };
145
1077
  //#endregion
146
1078
  //#region src/client.d.ts
147
1079
  interface ElementPayClientConfig {
148
1080
  endpoint: string;
149
1081
  apiKey: string;
1082
+ environment?: "int" | "prod";
150
1083
  }
151
- declare function createElementPayClient(config: ElementPayClientConfig): ReturnType<typeof getSdk>;
1084
+ declare function createElementPayClient(config: ElementPayClientConfig): ReturnType<typeof getIntSdk> | ReturnType<typeof getProdSdk>;
152
1085
  //#endregion
153
1086
  //#region src/pubSub/interfaces.d.ts
154
1087
  interface RawProvider {