@autofleet/element-pay 1.1.3 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { GraphQLClient } from "graphql-request";
2
2
  import { FuelSupplier } from "@autofleet/common-types/lib/pit-stop";
3
3
 
4
- //#region src/generated/int/sdk.d.ts
4
+ //#region src/generated/organization/sdk.d.ts
5
5
  type Maybe$1<T> = T | null;
6
6
  type InputMaybe$1<T> = Maybe$1<T>;
7
7
  type Exact$1<T extends {
@@ -41,11 +41,11 @@ declare enum AccountType {
41
41
  Credit = "CREDIT",
42
42
  PrePaid = "PRE_PAID",
43
43
  }
44
- type AdditionalInfoInput$1 = {
44
+ type AdditionalInfoInput = {
45
45
  contactPhoneNumber?: InputMaybe$1<Scalars$1['String']['input']>;
46
46
  isCorporatePhone?: InputMaybe$1<Scalars$1['Boolean']['input']>;
47
47
  };
48
- type AddressInput$1 = {
48
+ type AddressInput = {
49
49
  city: Scalars$1['String']['input'];
50
50
  country: Scalars$1['String']['input'];
51
51
  line1: Scalars$1['String']['input'];
@@ -53,17 +53,13 @@ type AddressInput$1 = {
53
53
  state: Scalars$1['String']['input'];
54
54
  zip: Scalars$1['String']['input'];
55
55
  };
56
- type ApiKeyCreateInput$1 = {
56
+ type ApiKeyCreateInput = {
57
57
  entityId?: InputMaybe$1<Scalars$1['ID']['input']>;
58
58
  name: Scalars$1['String']['input'];
59
59
  organizationId: Scalars$1['ID']['input'];
60
60
  };
61
- declare enum CardNetwork$1 {
62
- Mastercard = "MASTERCARD",
63
- Visa = "VISA",
64
- }
65
61
  type ClientOnboardInput = {
66
- address: AddressInput$1;
62
+ address: AddressInput;
67
63
  checkLocationOverride?: InputMaybe$1<Scalars$1['Boolean']['input']>;
68
64
  costFactorEnabled?: InputMaybe$1<Scalars$1['Boolean']['input']>;
69
65
  email?: InputMaybe$1<Scalars$1['String']['input']>;
@@ -75,14 +71,10 @@ type ClientOnboardInput = {
75
71
  unitsId?: InputMaybe$1<Scalars$1['String']['input']>;
76
72
  useTspMetadata?: InputMaybe$1<Scalars$1['Boolean']['input']>;
77
73
  };
78
- declare enum DigitalWallet$1 {
79
- DigitalWalletAndroid = "DIGITAL_WALLET_ANDROID",
80
- DigitalWalletApple = "DIGITAL_WALLET_APPLE",
81
- }
82
- type EntityCreateInput$1 = {
74
+ type EntityCreateInput = {
83
75
  description?: InputMaybe$1<Scalars$1['String']['input']>;
84
76
  externalId?: InputMaybe$1<Scalars$1['String']['input']>;
85
- funding?: InputMaybe$1<FundingSource$1>;
77
+ funding?: InputMaybe$1<FundingSource>;
86
78
  hasFinance?: InputMaybe$1<Scalars$1['Boolean']['input']>;
87
79
  name: Scalars$1['String']['input'];
88
80
  organizationId?: InputMaybe$1<Scalars$1['ID']['input']>;
@@ -93,39 +85,39 @@ declare enum FeeNetworkDesignationType {
93
85
  InNetwork = "IN_NETWORK",
94
86
  OutOfNetwork = "OUT_OF_NETWORK",
95
87
  }
96
- type FuelRestrictionsInput$1 = {
88
+ type FuelRestrictionsInput = {
97
89
  amountPerDay?: InputMaybe$1<Scalars$1['String']['input']>;
98
90
  amountPerTransaction?: InputMaybe$1<Scalars$1['String']['input']>;
99
91
  checkLocation?: InputMaybe$1<Scalars$1['Boolean']['input']>;
100
- daysOfWeek?: InputMaybe$1<PurchaseDaysOfWeekInput$1>;
101
- hours?: InputMaybe$1<PurchaseTimeRangeInput$1>;
92
+ daysOfWeek?: InputMaybe$1<PurchaseDaysOfWeekInput>;
93
+ hours?: InputMaybe$1<PurchaseTimeRangeInput>;
102
94
  isEnabled?: InputMaybe$1<Scalars$1['Boolean']['input']>;
103
95
  noOfTransactions?: InputMaybe$1<Scalars$1['Int']['input']>;
104
96
  };
105
- declare enum FundingSource$1 {
97
+ declare enum FundingSource {
106
98
  Ach = "ACH",
107
99
  Parent = "PARENT",
108
100
  Unknown = "UNKNOWN",
109
101
  }
110
- type HashMapInput$1 = {
102
+ type HashMapInput = {
111
103
  key: Scalars$1['String']['input'];
112
104
  value: Scalars$1['String']['input'];
113
105
  };
114
- declare enum JobCodeEntryOptionEnum$1 {
106
+ declare enum JobCodeEntryOptionEnum {
115
107
  Freeform = "FREEFORM",
116
108
  Predefined = "PREDEFINED",
117
109
  }
118
- declare enum LoginType$1 {
110
+ declare enum LoginType {
119
111
  Email = "EMAIL",
120
112
  External = "EXTERNAL",
121
113
  Phone = "PHONE",
122
114
  Unknown = "UNKNOWN",
123
115
  }
124
- type MachineTokenizeUserInput$1 = {
116
+ type MachineTokenizeUserInput = {
125
117
  userId: Scalars$1['ID']['input'];
126
118
  };
127
- type OrganizationCreateInput$1 = {
128
- address: AddressInput$1;
119
+ type OrganizationCreateInput = {
120
+ address: AddressInput;
129
121
  checkLocationOverride?: InputMaybe$1<Scalars$1['Boolean']['input']>;
130
122
  costFactorEnabled?: InputMaybe$1<Scalars$1['Boolean']['input']>;
131
123
  email?: InputMaybe$1<Scalars$1['String']['input']>;
@@ -136,42 +128,11 @@ type OrganizationCreateInput$1 = {
136
128
  unitsId?: InputMaybe$1<Scalars$1['String']['input']>;
137
129
  useTspMetadata?: InputMaybe$1<Scalars$1['Boolean']['input']>;
138
130
  };
139
- type PageRequest$1 = {
131
+ type PageRequest = {
140
132
  limit?: InputMaybe$1<Scalars$1['Int']['input']>;
141
133
  offset?: InputMaybe$1<Scalars$1['Int']['input']>;
142
134
  };
143
- declare enum PaymentMethodType$1 {
144
- DirectConnect = "DIRECT_CONNECT",
145
- LinkedCard = "LINKED_CARD",
146
- Ttp = "TTP",
147
- Unspecified = "UNSPECIFIED",
148
- }
149
- type PositionInput$1 = {
150
- latitude: Scalars$1['Float']['input'];
151
- longitude: Scalars$1['Float']['input'];
152
- };
153
- type ProvisionCardInput$1 = {
154
- deviceAccountId: Scalars$1['String']['input'];
155
- googleHardwareId?: InputMaybe$1<Scalars$1['String']['input']>;
156
- intermediateCertificate?: InputMaybe$1<Scalars$1['String']['input']>;
157
- leafCertificate?: InputMaybe$1<Scalars$1['String']['input']>;
158
- nonceSignature?: InputMaybe$1<Scalars$1['String']['input']>;
159
- nonceValue?: InputMaybe$1<Scalars$1['String']['input']>;
160
- paymentProviderAccountId: Scalars$1['String']['input'];
161
- walletId?: InputMaybe$1<Scalars$1['String']['input']>;
162
- walletType: DigitalWallet$1;
163
- };
164
- type ProvisionStatusUpdateInput$1 = {
165
- deviceAccountId: Scalars$1['String']['input'];
166
- errorDescription?: InputMaybe$1<Scalars$1['String']['input']>;
167
- paymentProviderAccountId: Scalars$1['String']['input'];
168
- status: ProvisioningStatus$1;
169
- };
170
- declare enum ProvisioningStatus$1 {
171
- Error = "ERROR",
172
- Success = "SUCCESS",
173
- }
174
- type PurchaseDaysOfWeekInput$1 = {
135
+ type PurchaseDaysOfWeekInput = {
175
136
  friday: Scalars$1['Boolean']['input'];
176
137
  monday: Scalars$1['Boolean']['input'];
177
138
  saturday: Scalars$1['Boolean']['input'];
@@ -180,33 +141,18 @@ type PurchaseDaysOfWeekInput$1 = {
180
141
  tuesday: Scalars$1['Boolean']['input'];
181
142
  wednesday: Scalars$1['Boolean']['input'];
182
143
  };
183
- type PurchaseTimeRangeInput$1 = {
144
+ type PurchaseTimeRangeInput = {
184
145
  from?: InputMaybe$1<Scalars$1['String']['input']>;
185
146
  to?: InputMaybe$1<Scalars$1['String']['input']>;
186
147
  };
187
- declare enum RoleType$1 {
148
+ declare enum RoleType {
188
149
  Admin = "ADMIN",
189
150
  Driver = "DRIVER",
190
151
  FullAccess = "FULL_ACCESS",
191
152
  Manager = "MANAGER",
192
153
  ViewOnly = "VIEW_ONLY",
193
154
  }
194
- type ServiceFuelInput$1 = {
195
- additionalInfo?: InputMaybe$1<AdditionalServicePayInfoInput$1>;
196
- pumpNumber: Scalars$1['Int']['input'];
197
- };
198
- type ServicePayInput$1 = {
199
- deviceId?: InputMaybe$1<Scalars$1['String']['input']>;
200
- fuel?: InputMaybe$1<ServiceFuelInput$1>;
201
- localTime?: InputMaybe$1<Scalars$1['String']['input']>;
202
- locationId: Scalars$1['ID']['input'];
203
- openloopFallback?: InputMaybe$1<Scalars$1['Boolean']['input']>;
204
- paymentMethodType?: InputMaybe$1<PaymentMethodType$1>;
205
- position: PositionInput$1;
206
- requestId: Scalars$1['ID']['input'];
207
- vehicleId: Scalars$1['ID']['input'];
208
- };
209
- declare enum SortDirection$1 {
155
+ declare enum SortDirection {
210
156
  Asc = "ASC",
211
157
  AscNullsFirst = "ASC_NULLS_FIRST",
212
158
  AscNullsLast = "ASC_NULLS_LAST",
@@ -214,47 +160,44 @@ declare enum SortDirection$1 {
214
160
  DescNullsFirst = "DESC_NULLS_FIRST",
215
161
  DescNullsLast = "DESC_NULLS_LAST",
216
162
  }
217
- type SpendRestrictionsDayInput$1 = {
163
+ type SpendRestrictionsDayInput = {
218
164
  isEnabled: Scalars$1['Boolean']['input'];
219
- purchaseTimes?: InputMaybe$1<Array<InputMaybe$1<PurchaseTimeRangeInput$1>>>;
165
+ purchaseTimes?: InputMaybe$1<Array<InputMaybe$1<PurchaseTimeRangeInput>>>;
220
166
  };
221
- type SpendRestrictionsDaysOfWeekInput$1 = {
222
- friday: SpendRestrictionsDayInput$1;
223
- monday: SpendRestrictionsDayInput$1;
224
- saturday: SpendRestrictionsDayInput$1;
225
- sunday: SpendRestrictionsDayInput$1;
226
- thursday: SpendRestrictionsDayInput$1;
227
- tuesday: SpendRestrictionsDayInput$1;
228
- wednesday: SpendRestrictionsDayInput$1;
167
+ type SpendRestrictionsDaysOfWeekInput = {
168
+ friday: SpendRestrictionsDayInput;
169
+ monday: SpendRestrictionsDayInput;
170
+ saturday: SpendRestrictionsDayInput;
171
+ sunday: SpendRestrictionsDayInput;
172
+ thursday: SpendRestrictionsDayInput;
173
+ tuesday: SpendRestrictionsDayInput;
174
+ wednesday: SpendRestrictionsDayInput;
229
175
  };
230
- type SpendRestrictionsInput$1 = {
176
+ type SpendRestrictionsInput = {
231
177
  amountPerDay?: InputMaybe$1<Scalars$1['String']['input']>;
232
178
  amountPerTransaction?: InputMaybe$1<Scalars$1['String']['input']>;
233
179
  amountPerWeek?: InputMaybe$1<Scalars$1['Int']['input']>;
234
180
  checkLocation?: InputMaybe$1<Scalars$1['Boolean']['input']>;
235
- daysOfWeek?: InputMaybe$1<SpendRestrictionsDaysOfWeekInput$1>;
181
+ daysOfWeek?: InputMaybe$1<SpendRestrictionsDaysOfWeekInput>;
236
182
  enforceFuelSpendEstimation?: InputMaybe$1<Scalars$1['Boolean']['input']>;
237
- fuel?: InputMaybe$1<FuelRestrictionsInput$1>;
183
+ fuel?: InputMaybe$1<FuelRestrictionsInput>;
238
184
  noOfTransactions?: InputMaybe$1<Scalars$1['Int']['input']>;
239
185
  predefinedRule?: InputMaybe$1<Scalars$1['String']['input']>;
240
186
  };
241
- type TtpTokenizationInput$1 = {
242
- deviceId: Scalars$1['String']['input'];
243
- requestId?: InputMaybe$1<Scalars$1['String']['input']>;
244
- };
245
- type UserCreateInput$1 = {
246
- additionalInfo?: InputMaybe$1<AdditionalInfoInput$1>;
187
+ type UserCreateInput = {
188
+ additionalInfo?: InputMaybe$1<AdditionalInfoInput>;
247
189
  email?: InputMaybe$1<Scalars$1['String']['input']>;
248
190
  employeeId?: InputMaybe$1<Scalars$1['String']['input']>;
249
191
  entityId: Scalars$1['ID']['input'];
250
192
  firstName: Scalars$1['String']['input'];
193
+ id?: InputMaybe$1<Scalars$1['ID']['input']>;
251
194
  lastName: Scalars$1['String']['input'];
252
- loginType?: InputMaybe$1<LoginType$1>;
195
+ loginType?: InputMaybe$1<LoginType>;
253
196
  organizationId?: InputMaybe$1<Scalars$1['ID']['input']>;
254
197
  phoneNumber?: InputMaybe$1<Scalars$1['String']['input']>;
255
- role: RoleType$1;
198
+ role: RoleType;
256
199
  };
257
- declare enum UserStatus$1 {
200
+ declare enum UserStatus {
258
201
  Deactivated = "DEACTIVATED",
259
202
  Deleted = "DELETED",
260
203
  Invited = "INVITED",
@@ -262,61 +205,61 @@ declare enum UserStatus$1 {
262
205
  Onboarded = "ONBOARDED",
263
206
  Unknown = "UNKNOWN",
264
207
  }
265
- type VehicleGroupCreateInput$1 = {
208
+ type VehicleGroupCreateInput = {
266
209
  description?: InputMaybe$1<Scalars$1['String']['input']>;
267
210
  driverEnteredOdometerEnabled?: InputMaybe$1<Scalars$1['Boolean']['input']>;
268
211
  drivers?: InputMaybe$1<Array<InputMaybe$1<Scalars$1['ID']['input']>>>;
269
212
  entityId?: InputMaybe$1<Scalars$1['ID']['input']>;
270
213
  externalId?: InputMaybe$1<Scalars$1['String']['input']>;
271
214
  jobCodeEnabled?: InputMaybe$1<Scalars$1['Boolean']['input']>;
272
- jobCodeEntryOption?: InputMaybe$1<JobCodeEntryOptionEnum$1>;
215
+ jobCodeEntryOption?: InputMaybe$1<JobCodeEntryOptionEnum>;
273
216
  jobCodeEntryOptional?: InputMaybe$1<Scalars$1['Boolean']['input']>;
274
217
  jobCodeOptions?: InputMaybe$1<Array<InputMaybe$1<Scalars$1['String']['input']>>>;
275
218
  name: Scalars$1['String']['input'];
276
219
  organizationId?: InputMaybe$1<Scalars$1['ID']['input']>;
277
- spendRestrictions: SpendRestrictionsInput$1;
220
+ spendRestrictions: SpendRestrictionsInput;
278
221
  vehicles?: InputMaybe$1<Array<InputMaybe$1<Scalars$1['ID']['input']>>>;
279
222
  };
280
- type VehicleGroupDriversAddInput$1 = {
223
+ type VehicleGroupDriversAddInput = {
281
224
  drivers: Array<Scalars$1['ID']['input']>;
282
225
  vehicleGroupId: Scalars$1['ID']['input'];
283
226
  };
284
- type VehicleGroupVehiclesAddInput$1 = {
227
+ type VehicleGroupVehiclesAddInput = {
285
228
  vehicleGroupId: Scalars$1['ID']['input'];
286
229
  vehicles: Array<Scalars$1['ID']['input']>;
287
230
  };
288
- type VehicleGroupsFilterInput$1 = {
289
- filter: VehicleGroupsFilterOptions$1;
290
- page: PageRequest$1;
291
- sortOptions?: InputMaybe$1<VehicleGroupsSortOptions$1>;
231
+ type VehicleGroupsFilterInput = {
232
+ filter: VehicleGroupsFilterOptions;
233
+ page: PageRequest;
234
+ sortOptions?: InputMaybe$1<VehicleGroupsSortOptions>;
292
235
  };
293
- type VehicleGroupsFilterOptions$1 = {
236
+ type VehicleGroupsFilterOptions = {
294
237
  driverId?: InputMaybe$1<Scalars$1['ID']['input']>;
295
238
  entityId?: InputMaybe$1<Scalars$1['ID']['input']>;
296
239
  includeChildren?: InputMaybe$1<Scalars$1['Boolean']['input']>;
297
240
  includeSpendControls?: InputMaybe$1<Scalars$1['Boolean']['input']>;
298
241
  };
299
- declare enum VehicleGroupsSortField$1 {
242
+ declare enum VehicleGroupsSortField {
300
243
  Description = "DESCRIPTION",
301
244
  DriverCount = "DRIVER_COUNT",
302
245
  LastTransactionDate = "LAST_TRANSACTION_DATE",
303
246
  Name = "NAME",
304
247
  VehicleCount = "VEHICLE_COUNT",
305
248
  }
306
- type VehicleGroupsSortOptions$1 = {
307
- direction: SortDirection$1;
308
- orderBy: VehicleGroupsSortField$1;
249
+ type VehicleGroupsSortOptions = {
250
+ direction: SortDirection;
251
+ orderBy: VehicleGroupsSortField;
309
252
  };
310
- type VehicleUpdateInput$1 = {
311
- customFields?: InputMaybe$1<Array<InputMaybe$1<HashMapInput$1>>>;
253
+ type VehicleUpdateInput = {
254
+ customFields?: InputMaybe$1<Array<InputMaybe$1<HashMapInput>>>;
312
255
  description?: InputMaybe$1<Scalars$1['String']['input']>;
313
256
  id: Scalars$1['ID']['input'];
314
257
  licensePlate?: InputMaybe$1<Scalars$1['String']['input']>;
315
258
  licensePlateState?: InputMaybe$1<Scalars$1['String']['input']>;
316
259
  number?: InputMaybe$1<Scalars$1['String']['input']>;
317
260
  };
318
- type VehiclesOnboardInput$1 = {
319
- customFields?: InputMaybe$1<Array<InputMaybe$1<HashMapInput$1>>>;
261
+ type VehiclesOnboardInput = {
262
+ customFields?: InputMaybe$1<Array<InputMaybe$1<HashMapInput>>>;
320
263
  description?: InputMaybe$1<Scalars$1['String']['input']>;
321
264
  id?: InputMaybe$1<Scalars$1['ID']['input']>;
322
265
  licensePlate?: InputMaybe$1<Scalars$1['String']['input']>;
@@ -325,27 +268,38 @@ type VehiclesOnboardInput$1 = {
325
268
  vehicleGroupId: Scalars$1['ID']['input'];
326
269
  vin?: InputMaybe$1<Scalars$1['String']['input']>;
327
270
  };
328
- type VehiclesOnboardInputList$1 = {
329
- vehicles?: InputMaybe$1<Array<InputMaybe$1<VehiclesOnboardInput$1>>>;
330
- };
331
- type AdditionalServicePayInfoInput$1 = {
332
- jobCode?: InputMaybe$1<Scalars$1['String']['input']>;
333
- odometer?: InputMaybe$1<Scalars$1['Int']['input']>;
271
+ type VehiclesOnboardInputList = {
272
+ vehicles?: InputMaybe$1<Array<InputMaybe$1<VehiclesOnboardInput>>>;
334
273
  };
335
- type ApiKeyCreateMutationVariables$1 = Exact$1<{
336
- input: ApiKeyCreateInput$1;
274
+ type ApiKeyCreateMutationVariables = Exact$1<{
275
+ input: ApiKeyCreateInput;
337
276
  }>;
338
- type ApiKeyCreateMutation$1 = {
277
+ type ApiKeyCreateMutation = {
339
278
  __typename?: 'Mutation';
340
279
  apiKeyCreate?: {
341
280
  __typename?: 'ApiKeyCreateOutput';
342
281
  apiKey: string;
343
282
  } | null;
344
283
  };
345
- type OrganizationCreateMutationVariables$1 = Exact$1<{
346
- input: OrganizationCreateInput$1;
284
+ type ClientOnboardMutationVariables = Exact$1<{
285
+ input: ClientOnboardInput;
286
+ }>;
287
+ type ClientOnboardMutation = {
288
+ __typename?: 'Mutation';
289
+ clientOnboard?: {
290
+ __typename?: 'Entity';
291
+ id: string;
292
+ name?: string | null;
293
+ externalId?: string | null;
294
+ insertedAt?: string | null;
295
+ updatedAt?: string | null;
296
+ deletedAt?: string | null;
297
+ } | null;
298
+ };
299
+ type OrganizationCreateMutationVariables = Exact$1<{
300
+ input: OrganizationCreateInput;
347
301
  }>;
348
- type OrganizationCreateMutation$1 = {
302
+ type OrganizationCreateMutation = {
349
303
  __typename?: 'Mutation';
350
304
  organizationCreate?: {
351
305
  __typename?: 'Organization';
@@ -367,10 +321,10 @@ type OrganizationCreateMutation$1 = {
367
321
  } | null;
368
322
  } | null;
369
323
  };
370
- type EntityCreateMutationVariables$1 = Exact$1<{
371
- input: EntityCreateInput$1;
324
+ type EntityCreateMutationVariables = Exact$1<{
325
+ input: EntityCreateInput;
372
326
  }>;
373
- type EntityCreateMutation$1 = {
327
+ type EntityCreateMutation = {
374
328
  __typename?: 'Mutation';
375
329
  entityCreate?: {
376
330
  __typename?: 'Entity';
@@ -380,24 +334,9 @@ type EntityCreateMutation$1 = {
380
334
  externalId?: string | null;
381
335
  parentId?: string | null;
382
336
  hasFinance?: boolean | null;
383
- funding?: FundingSource$1 | null;
384
- insertedAt?: string | null;
385
- updatedAt?: string | null;
386
- } | null;
387
- };
388
- type ClientOnboardMutationVariables = Exact$1<{
389
- input: ClientOnboardInput;
390
- }>;
391
- type ClientOnboardMutation = {
392
- __typename?: 'Mutation';
393
- clientOnboard?: {
394
- __typename?: 'Entity';
395
- id: string;
396
- name?: string | null;
397
- externalId?: string | null;
337
+ funding?: FundingSource | null;
398
338
  insertedAt?: string | null;
399
339
  updatedAt?: string | null;
400
- deletedAt?: string | null;
401
340
  } | null;
402
341
  };
403
342
  type EntityGetExternalIdQueryVariables = Exact$1<{
@@ -414,7 +353,7 @@ type EntityGetExternalIdQuery = {
414
353
  hasFinance?: boolean | null;
415
354
  code?: string | null;
416
355
  path?: string | null;
417
- funding?: FundingSource$1 | null;
356
+ funding?: FundingSource | null;
418
357
  insertedAt?: string | null;
419
358
  updatedAt?: string | null;
420
359
  deletedAt?: string | null;
@@ -449,10 +388,10 @@ type EntityGetExternalIdQuery = {
449
388
  } | null;
450
389
  } | null;
451
390
  };
452
- type MachineTokenizeUserMutationVariables$1 = Exact$1<{
453
- input?: InputMaybe$1<MachineTokenizeUserInput$1>;
391
+ type MachineTokenizeUserMutationVariables = Exact$1<{
392
+ input?: InputMaybe$1<MachineTokenizeUserInput>;
454
393
  }>;
455
- type MachineTokenizeUserMutation$1 = {
394
+ type MachineTokenizeUserMutation = {
456
395
  __typename?: 'Mutation';
457
396
  machineTokenizeUser?: {
458
397
  __typename?: 'MachineUserToken';
@@ -460,70 +399,10 @@ type MachineTokenizeUserMutation$1 = {
460
399
  expires_in: number;
461
400
  } | null;
462
401
  };
463
- type ProvisionCardMutationVariables$1 = Exact$1<{
464
- input: ProvisionCardInput$1;
465
- }>;
466
- type ProvisionCardMutation$1 = {
467
- __typename?: 'Mutation';
468
- provisionCard: {
469
- __typename?: 'ProvisionCardResponse';
470
- encryptedData?: string | null;
471
- activationData?: string | null;
472
- publicKey?: string | null;
473
- lastFourDigits?: string | null;
474
- displayName?: string | null;
475
- cardNetwork?: CardNetwork$1 | null;
476
- };
477
- };
478
- type ProvisionStatusUpdateMutationVariables$1 = Exact$1<{
479
- input: ProvisionStatusUpdateInput$1;
480
- }>;
481
- type ProvisionStatusUpdateMutation$1 = {
482
- __typename?: 'Mutation';
483
- provisionStatusUpdate: {
484
- __typename?: 'BooleanSuccessOutput';
485
- success: boolean;
486
- };
487
- };
488
- type ServicePayMutationVariables$1 = Exact$1<{
489
- input: ServicePayInput$1;
490
- }>;
491
- type ServicePayMutation$1 = {
492
- __typename?: 'Mutation';
493
- servicePay?: {
494
- __typename?: 'ServicePayOutput';
495
- requestId: string;
496
- transactionId: string;
497
- } | null;
498
- };
499
- type TtpTokenizationMutationVariables$1 = Exact$1<{
500
- input: TtpTokenizationInput$1;
501
- }>;
502
- type TtpTokenizationMutation$1 = {
503
- __typename?: 'Mutation';
504
- ttpTokenization?: {
505
- __typename?: 'TtpTokenizationOutput';
506
- requestId?: string | null;
507
- success?: boolean | null;
508
- paymentProviderAccountId?: string | null;
509
- deviceAccountId?: string | null;
510
- lastFourDigits?: string | null;
511
- displayName?: string | null;
512
- cardFlag?: CardNetwork$1 | null;
513
- programSupports?: {
514
- __typename?: 'ProgramSupports';
515
- isCloseLoopSupported?: boolean | null;
516
- isDcSupported?: boolean | null;
517
- isPhysicalCardSupported?: boolean | null;
518
- isTtpSupported?: boolean | null;
519
- isUsingInternalProgram?: boolean | null;
520
- } | null;
521
- } | null;
522
- };
523
- type UserCreateMutationVariables$1 = Exact$1<{
524
- input: UserCreateInput$1;
402
+ type UserCreateMutationVariables = Exact$1<{
403
+ input: UserCreateInput;
525
404
  }>;
526
- type UserCreateMutation$1 = {
405
+ type UserCreateMutation = {
527
406
  __typename?: 'Mutation';
528
407
  userCreate?: {
529
408
  __typename?: 'User';
@@ -535,19 +414,19 @@ type UserCreateMutation$1 = {
535
414
  email?: string | null;
536
415
  phoneNumber?: string | null;
537
416
  employeeId?: string | null;
538
- role?: RoleType$1 | null;
539
- status?: UserStatus$1 | null;
540
- loginType?: LoginType$1 | null;
417
+ role?: RoleType | null;
418
+ status?: UserStatus | null;
419
+ loginType?: LoginType | null;
541
420
  externalId?: string | null;
542
421
  organizationId?: string | null;
543
422
  insertedAt?: string | null;
544
423
  updatedAt?: string | null;
545
424
  } | null;
546
425
  };
547
- type VehicleGroupCreateMutationVariables$1 = Exact$1<{
548
- input: VehicleGroupCreateInput$1;
426
+ type VehicleGroupCreateMutationVariables = Exact$1<{
427
+ input: VehicleGroupCreateInput;
549
428
  }>;
550
- type VehicleGroupCreateMutation$1 = {
429
+ type VehicleGroupCreateMutation = {
551
430
  __typename?: 'Mutation';
552
431
  vehicleGroupCreate?: {
553
432
  __typename?: 'IndividualVehicleGroup';
@@ -562,10 +441,10 @@ type VehicleGroupCreateMutation$1 = {
562
441
  updatedAt?: string | null;
563
442
  } | null;
564
443
  };
565
- type VehicleGroupDriversAddMutationVariables$1 = Exact$1<{
566
- input: VehicleGroupDriversAddInput$1;
444
+ type VehicleGroupDriversAddMutationVariables = Exact$1<{
445
+ input: VehicleGroupDriversAddInput;
567
446
  }>;
568
- type VehicleGroupDriversAddMutation$1 = {
447
+ type VehicleGroupDriversAddMutation = {
569
448
  __typename?: 'Mutation';
570
449
  vehicleGroupDriversAdd?: {
571
450
  __typename?: 'VehicleGroup';
@@ -579,10 +458,10 @@ type VehicleGroupDriversAddMutation$1 = {
579
458
  updatedAt?: string | null;
580
459
  } | null;
581
460
  };
582
- type VehicleGroupVehiclesAddMutationVariables$1 = Exact$1<{
583
- input: VehicleGroupVehiclesAddInput$1;
461
+ type VehicleGroupVehiclesAddMutationVariables = Exact$1<{
462
+ input: VehicleGroupVehiclesAddInput;
584
463
  }>;
585
- type VehicleGroupVehiclesAddMutation$1 = {
464
+ type VehicleGroupVehiclesAddMutation = {
586
465
  __typename?: 'Mutation';
587
466
  vehicleGroupVehiclesAdd?: {
588
467
  __typename?: 'VehicleGroup';
@@ -596,17 +475,17 @@ type VehicleGroupVehiclesAddMutation$1 = {
596
475
  updatedAt?: string | null;
597
476
  } | null;
598
477
  };
599
- type VehicleUpdateMutationVariables$1 = Exact$1<{
600
- input: VehicleUpdateInput$1;
478
+ type VehicleUpdateMutationVariables = Exact$1<{
479
+ input: VehicleUpdateInput;
601
480
  }>;
602
- type VehicleUpdateMutation$1 = {
481
+ type VehicleUpdateMutation = {
603
482
  __typename?: 'Mutation';
604
483
  vehicleUpdate?: string | null;
605
484
  };
606
- type VehicleGroupsFilterQueryVariables$1 = Exact$1<{
607
- input: VehicleGroupsFilterInput$1;
485
+ type VehicleGroupsFilterQueryVariables = Exact$1<{
486
+ input: VehicleGroupsFilterInput;
608
487
  }>;
609
- type VehicleGroupsFilterQuery$1 = {
488
+ type VehicleGroupsFilterQuery = {
610
489
  __typename?: 'Query';
611
490
  vehicleGroupsFilter?: {
612
491
  __typename?: 'VehicleGroupsPage';
@@ -625,10 +504,10 @@ type VehicleGroupsFilterQuery$1 = {
625
504
  } | null;
626
505
  } | null;
627
506
  };
628
- type VehiclesOnboardMutationVariables$1 = Exact$1<{
629
- input: VehiclesOnboardInputList$1;
507
+ type VehiclesOnboardMutationVariables = Exact$1<{
508
+ input: VehiclesOnboardInputList;
630
509
  }>;
631
- type VehiclesOnboardMutation$1 = {
510
+ type VehiclesOnboardMutation = {
632
511
  __typename?: 'Mutation';
633
512
  vehiclesOnboard?: {
634
513
  __typename?: 'VehiclesOnboardOutputList';
@@ -643,7 +522,29 @@ type VehiclesOnboardMutation$1 = {
643
522
  } | null;
644
523
  };
645
524
  //#endregion
646
- //#region src/generated/stage/sdk.d.ts
525
+ //#region src/organization.d.ts
526
+ interface ElementPayOrganizationConfig {
527
+ apiKey: string;
528
+ environment?: 'int' | 'stage';
529
+ endpoint?: string;
530
+ }
531
+ declare function getOrganizationSdk(config: ElementPayOrganizationConfig): {
532
+ apiKeyCreate(variables: ApiKeyCreateMutationVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<ApiKeyCreateMutation>;
533
+ clientOnboard(variables: ClientOnboardMutationVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<ClientOnboardMutation>;
534
+ organizationCreate(variables: OrganizationCreateMutationVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<OrganizationCreateMutation>;
535
+ entityCreate(variables: EntityCreateMutationVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<EntityCreateMutation>;
536
+ entityGetExternalId(variables?: EntityGetExternalIdQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<EntityGetExternalIdQuery>;
537
+ machineTokenizeUser(variables?: MachineTokenizeUserMutationVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<MachineTokenizeUserMutation>;
538
+ userCreate(variables: UserCreateMutationVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<UserCreateMutation>;
539
+ vehicleGroupCreate(variables: VehicleGroupCreateMutationVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<VehicleGroupCreateMutation>;
540
+ vehicleGroupDriversAdd(variables: VehicleGroupDriversAddMutationVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<VehicleGroupDriversAddMutation>;
541
+ vehicleGroupVehiclesAdd(variables: VehicleGroupVehiclesAddMutationVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<VehicleGroupVehiclesAddMutation>;
542
+ vehicleUpdate(variables: VehicleUpdateMutationVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<VehicleUpdateMutation>;
543
+ vehicleGroupsFilter(variables: VehicleGroupsFilterQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<VehicleGroupsFilterQuery>;
544
+ vehiclesOnboard(variables: VehiclesOnboardMutationVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<VehiclesOnboardMutation>;
545
+ };
546
+ //#endregion
547
+ //#region src/generated/user/sdk.d.ts
647
548
  type Maybe<T> = T | null;
648
549
  type InputMaybe<T> = Maybe<T>;
649
550
  type Exact<T extends {
@@ -679,23 +580,6 @@ type Scalars = {
679
580
  output: any;
680
581
  };
681
582
  };
682
- type AdditionalInfoInput = {
683
- contactPhoneNumber?: InputMaybe<Scalars['String']['input']>;
684
- isCorporatePhone?: InputMaybe<Scalars['Boolean']['input']>;
685
- };
686
- type AddressInput = {
687
- city: Scalars['String']['input'];
688
- country: Scalars['String']['input'];
689
- line1: Scalars['String']['input'];
690
- line2?: InputMaybe<Scalars['String']['input']>;
691
- state: Scalars['String']['input'];
692
- zip: Scalars['String']['input'];
693
- };
694
- type ApiKeyCreateInput = {
695
- entityId?: InputMaybe<Scalars['ID']['input']>;
696
- name: Scalars['String']['input'];
697
- organizationId: Scalars['ID']['input'];
698
- };
699
583
  declare enum CardNetwork {
700
584
  Mastercard = "MASTERCARD",
701
585
  Visa = "VISA",
@@ -704,67 +588,6 @@ declare enum DigitalWallet {
704
588
  DigitalWalletAndroid = "DIGITAL_WALLET_ANDROID",
705
589
  DigitalWalletApple = "DIGITAL_WALLET_APPLE",
706
590
  }
707
- type EntityCreateInput = {
708
- description?: InputMaybe<Scalars['String']['input']>;
709
- externalId?: InputMaybe<Scalars['String']['input']>;
710
- funding?: InputMaybe<FundingSource>;
711
- hasFinance?: InputMaybe<Scalars['Boolean']['input']>;
712
- name: Scalars['String']['input'];
713
- organizationId?: InputMaybe<Scalars['ID']['input']>;
714
- parentId?: InputMaybe<Scalars['ID']['input']>;
715
- };
716
- type FuelRestrictionsInput = {
717
- amountPerDay?: InputMaybe<Scalars['String']['input']>;
718
- amountPerTransaction?: InputMaybe<Scalars['String']['input']>;
719
- checkLocation?: InputMaybe<Scalars['Boolean']['input']>;
720
- daysOfWeek?: InputMaybe<PurchaseDaysOfWeekInput>;
721
- hours?: InputMaybe<PurchaseTimeRangeInput>;
722
- isEnabled?: InputMaybe<Scalars['Boolean']['input']>;
723
- noOfTransactions?: InputMaybe<Scalars['Int']['input']>;
724
- };
725
- declare enum FundingSource {
726
- Ach = "ACH",
727
- Parent = "PARENT",
728
- Unknown = "UNKNOWN",
729
- }
730
- type HashMapInput = {
731
- key: Scalars['String']['input'];
732
- value: Scalars['String']['input'];
733
- };
734
- declare enum JobCodeEntryOptionEnum {
735
- Freeform = "FREEFORM",
736
- Predefined = "PREDEFINED",
737
- }
738
- declare enum LoginType {
739
- Email = "EMAIL",
740
- Phone = "PHONE",
741
- Unknown = "UNKNOWN",
742
- }
743
- type MachineTokenizeUserInput = {
744
- email?: InputMaybe<Scalars['String']['input']>;
745
- externalId: Scalars['String']['input'];
746
- firstName?: InputMaybe<Scalars['String']['input']>;
747
- lastName?: InputMaybe<Scalars['String']['input']>;
748
- organizationId: Scalars['ID']['input'];
749
- phoneNumber?: InputMaybe<Scalars['String']['input']>;
750
- username?: InputMaybe<Scalars['String']['input']>;
751
- };
752
- type OrganizationCreateInput = {
753
- address: AddressInput;
754
- checkLocationOverride?: InputMaybe<Scalars['Boolean']['input']>;
755
- costFactorEnabled?: InputMaybe<Scalars['Boolean']['input']>;
756
- email?: InputMaybe<Scalars['String']['input']>;
757
- integratorId?: InputMaybe<Scalars['ID']['input']>;
758
- name: Scalars['String']['input'];
759
- onboardedBy?: InputMaybe<Scalars['String']['input']>;
760
- taxId?: InputMaybe<Scalars['String']['input']>;
761
- unitsId?: InputMaybe<Scalars['String']['input']>;
762
- useTspMetadata?: InputMaybe<Scalars['Boolean']['input']>;
763
- };
764
- type PageRequest = {
765
- limit?: InputMaybe<Scalars['Int']['input']>;
766
- offset?: InputMaybe<Scalars['Int']['input']>;
767
- };
768
591
  declare enum PaymentMethodType {
769
592
  DirectConnect = "DIRECT_CONNECT",
770
593
  LinkedCard = "LINKED_CARD",
@@ -796,26 +619,6 @@ declare enum ProvisioningStatus {
796
619
  Error = "ERROR",
797
620
  Success = "SUCCESS",
798
621
  }
799
- type PurchaseDaysOfWeekInput = {
800
- friday: Scalars['Boolean']['input'];
801
- monday: Scalars['Boolean']['input'];
802
- saturday: Scalars['Boolean']['input'];
803
- sunday: Scalars['Boolean']['input'];
804
- thursday: Scalars['Boolean']['input'];
805
- tuesday: Scalars['Boolean']['input'];
806
- wednesday: Scalars['Boolean']['input'];
807
- };
808
- type PurchaseTimeRangeInput = {
809
- from?: InputMaybe<Scalars['String']['input']>;
810
- to?: InputMaybe<Scalars['String']['input']>;
811
- };
812
- declare enum RoleType {
813
- Admin = "ADMIN",
814
- Driver = "DRIVER",
815
- FullAccess = "FULL_ACCESS",
816
- Manager = "MANAGER",
817
- ViewOnly = "VIEW_ONLY",
818
- }
819
622
  type ServiceFuelInput = {
820
623
  additionalInfo?: InputMaybe<AdditionalServicePayInfoInput>;
821
624
  pumpNumber: Scalars['Int']['input'];
@@ -831,196 +634,14 @@ type ServicePayInput = {
831
634
  requestId: Scalars['ID']['input'];
832
635
  vehicleId: Scalars['ID']['input'];
833
636
  };
834
- declare enum SortDirection {
835
- Asc = "ASC",
836
- AscNullsFirst = "ASC_NULLS_FIRST",
837
- AscNullsLast = "ASC_NULLS_LAST",
838
- Desc = "DESC",
839
- DescNullsFirst = "DESC_NULLS_FIRST",
840
- DescNullsLast = "DESC_NULLS_LAST",
841
- }
842
- type SpendRestrictionsDayInput = {
843
- isEnabled: Scalars['Boolean']['input'];
844
- purchaseTimes?: InputMaybe<Array<InputMaybe<PurchaseTimeRangeInput>>>;
845
- };
846
- type SpendRestrictionsDaysOfWeekInput = {
847
- friday: SpendRestrictionsDayInput;
848
- monday: SpendRestrictionsDayInput;
849
- saturday: SpendRestrictionsDayInput;
850
- sunday: SpendRestrictionsDayInput;
851
- thursday: SpendRestrictionsDayInput;
852
- tuesday: SpendRestrictionsDayInput;
853
- wednesday: SpendRestrictionsDayInput;
854
- };
855
- type SpendRestrictionsInput = {
856
- amountPerDay?: InputMaybe<Scalars['String']['input']>;
857
- amountPerTransaction?: InputMaybe<Scalars['String']['input']>;
858
- amountPerWeek?: InputMaybe<Scalars['Int']['input']>;
859
- checkLocation?: InputMaybe<Scalars['Boolean']['input']>;
860
- daysOfWeek?: InputMaybe<SpendRestrictionsDaysOfWeekInput>;
861
- enforceFuelSpendEstimation?: InputMaybe<Scalars['Boolean']['input']>;
862
- fuel?: InputMaybe<FuelRestrictionsInput>;
863
- noOfTransactions?: InputMaybe<Scalars['Int']['input']>;
864
- predefinedRule?: InputMaybe<Scalars['String']['input']>;
865
- };
866
637
  type TtpTokenizationInput = {
867
638
  deviceId: Scalars['String']['input'];
868
639
  requestId?: InputMaybe<Scalars['String']['input']>;
869
640
  };
870
- type UserCreateInput = {
871
- additionalInfo?: InputMaybe<AdditionalInfoInput>;
872
- email?: InputMaybe<Scalars['String']['input']>;
873
- employeeId?: InputMaybe<Scalars['String']['input']>;
874
- entityId: Scalars['ID']['input'];
875
- firstName: Scalars['String']['input'];
876
- lastName: Scalars['String']['input'];
877
- loginType?: InputMaybe<LoginType>;
878
- organizationId?: InputMaybe<Scalars['ID']['input']>;
879
- phoneNumber?: InputMaybe<Scalars['String']['input']>;
880
- role: RoleType;
881
- };
882
- declare enum UserStatus {
883
- Deactivated = "DEACTIVATED",
884
- Deleted = "DELETED",
885
- Invited = "INVITED",
886
- LockedOut = "LOCKED_OUT",
887
- Onboarded = "ONBOARDED",
888
- Unknown = "UNKNOWN",
889
- }
890
- type VehicleGroupCreateInput = {
891
- description?: InputMaybe<Scalars['String']['input']>;
892
- driverEnteredOdometerEnabled?: InputMaybe<Scalars['Boolean']['input']>;
893
- drivers?: InputMaybe<Array<InputMaybe<Scalars['ID']['input']>>>;
894
- entityId?: InputMaybe<Scalars['ID']['input']>;
895
- externalId?: InputMaybe<Scalars['String']['input']>;
896
- jobCodeEnabled?: InputMaybe<Scalars['Boolean']['input']>;
897
- jobCodeEntryOption?: InputMaybe<JobCodeEntryOptionEnum>;
898
- jobCodeEntryOptional?: InputMaybe<Scalars['Boolean']['input']>;
899
- jobCodeOptions?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
900
- name: Scalars['String']['input'];
901
- organizationId?: InputMaybe<Scalars['ID']['input']>;
902
- spendRestrictions: SpendRestrictionsInput;
903
- vehicles?: InputMaybe<Array<InputMaybe<Scalars['ID']['input']>>>;
904
- };
905
- type VehicleGroupDriversAddInput = {
906
- drivers: Array<Scalars['ID']['input']>;
907
- vehicleGroupId: Scalars['ID']['input'];
908
- };
909
- type VehicleGroupVehiclesAddInput = {
910
- vehicleGroupId: Scalars['ID']['input'];
911
- vehicles: Array<Scalars['ID']['input']>;
912
- };
913
- type VehicleGroupsFilterInput = {
914
- filter: VehicleGroupsFilterOptions;
915
- page: PageRequest;
916
- sortOptions?: InputMaybe<VehicleGroupsSortOptions>;
917
- };
918
- type VehicleGroupsFilterOptions = {
919
- driverId?: InputMaybe<Scalars['ID']['input']>;
920
- entityId?: InputMaybe<Scalars['ID']['input']>;
921
- includeChildren?: InputMaybe<Scalars['Boolean']['input']>;
922
- includeSpendControls?: InputMaybe<Scalars['Boolean']['input']>;
923
- };
924
- declare enum VehicleGroupsSortField {
925
- Description = "DESCRIPTION",
926
- DriverCount = "DRIVER_COUNT",
927
- LastTransactionDate = "LAST_TRANSACTION_DATE",
928
- Name = "NAME",
929
- VehicleCount = "VEHICLE_COUNT",
930
- }
931
- type VehicleGroupsSortOptions = {
932
- direction: SortDirection;
933
- orderBy: VehicleGroupsSortField;
934
- };
935
- type VehicleUpdateInput = {
936
- customFields?: InputMaybe<Array<InputMaybe<HashMapInput>>>;
937
- description?: InputMaybe<Scalars['String']['input']>;
938
- id: Scalars['ID']['input'];
939
- licensePlate?: InputMaybe<Scalars['String']['input']>;
940
- licensePlateState?: InputMaybe<Scalars['String']['input']>;
941
- number?: InputMaybe<Scalars['String']['input']>;
942
- };
943
- type VehiclesOnboardInput = {
944
- customFields?: InputMaybe<Array<InputMaybe<HashMapInput>>>;
945
- description?: InputMaybe<Scalars['String']['input']>;
946
- id?: InputMaybe<Scalars['ID']['input']>;
947
- licensePlate?: InputMaybe<Scalars['String']['input']>;
948
- licensePlateState?: InputMaybe<Scalars['String']['input']>;
949
- number?: InputMaybe<Scalars['String']['input']>;
950
- vehicleGroupId: Scalars['ID']['input'];
951
- vin?: InputMaybe<Scalars['String']['input']>;
952
- };
953
- type VehiclesOnboardInputList = {
954
- vehicles?: InputMaybe<Array<InputMaybe<VehiclesOnboardInput>>>;
955
- };
956
641
  type AdditionalServicePayInfoInput = {
957
642
  jobCode?: InputMaybe<Scalars['String']['input']>;
958
643
  odometer?: InputMaybe<Scalars['Int']['input']>;
959
644
  };
960
- type ApiKeyCreateMutationVariables = Exact<{
961
- input: ApiKeyCreateInput;
962
- }>;
963
- type ApiKeyCreateMutation = {
964
- __typename?: 'Mutation';
965
- apiKeyCreate?: {
966
- __typename?: 'ApiKeyCreateOutput';
967
- apiKey: string;
968
- } | null;
969
- };
970
- type OrganizationCreateMutationVariables = Exact<{
971
- input: OrganizationCreateInput;
972
- }>;
973
- type OrganizationCreateMutation = {
974
- __typename?: 'Mutation';
975
- organizationCreate?: {
976
- __typename?: 'Organization';
977
- id: string;
978
- name?: string | null;
979
- onboardedAt?: string | null;
980
- onboardedBy?: string | null;
981
- insertedAt?: string | null;
982
- updatedAt?: string | null;
983
- deletedAt?: string | null;
984
- address?: {
985
- __typename?: 'Address';
986
- line1?: string | null;
987
- line2?: string | null;
988
- city?: string | null;
989
- state?: string | null;
990
- country?: string | null;
991
- zip?: string | null;
992
- } | null;
993
- } | null;
994
- };
995
- type EntityCreateMutationVariables = Exact<{
996
- input: EntityCreateInput;
997
- }>;
998
- type EntityCreateMutation = {
999
- __typename?: 'Mutation';
1000
- entityCreate?: {
1001
- __typename?: 'Entity';
1002
- id: string;
1003
- name?: string | null;
1004
- description?: string | null;
1005
- externalId?: string | null;
1006
- parentId?: string | null;
1007
- hasFinance?: boolean | null;
1008
- funding?: FundingSource | null;
1009
- insertedAt?: string | null;
1010
- updatedAt?: string | null;
1011
- } | null;
1012
- };
1013
- type MachineTokenizeUserMutationVariables = Exact<{
1014
- input?: InputMaybe<MachineTokenizeUserInput>;
1015
- }>;
1016
- type MachineTokenizeUserMutation = {
1017
- __typename?: 'Mutation';
1018
- machineTokenizeUser?: {
1019
- __typename?: 'MachineUserToken';
1020
- access_token: string;
1021
- expires_in: number;
1022
- } | null;
1023
- };
1024
645
  type ProvisionCardMutationVariables = Exact<{
1025
646
  input: ProvisionCardInput;
1026
647
  }>;
@@ -1081,169 +702,18 @@ type TtpTokenizationMutation = {
1081
702
  } | null;
1082
703
  } | null;
1083
704
  };
1084
- type UserCreateMutationVariables = Exact<{
1085
- input: UserCreateInput;
1086
- }>;
1087
- type UserCreateMutation = {
1088
- __typename?: 'Mutation';
1089
- userCreate?: {
1090
- __typename?: 'User';
1091
- id?: string | null;
1092
- firstName?: string | null;
1093
- lastName?: string | null;
1094
- middleName?: string | null;
1095
- fullName?: string | null;
1096
- email?: string | null;
1097
- phoneNumber?: string | null;
1098
- employeeId?: string | null;
1099
- role?: RoleType | null;
1100
- status?: UserStatus | null;
1101
- loginType?: LoginType | null;
1102
- externalId?: string | null;
1103
- organizationId?: string | null;
1104
- insertedAt?: string | null;
1105
- updatedAt?: string | null;
1106
- } | null;
1107
- };
1108
- type VehicleGroupCreateMutationVariables = Exact<{
1109
- input: VehicleGroupCreateInput;
1110
- }>;
1111
- type VehicleGroupCreateMutation = {
1112
- __typename?: 'Mutation';
1113
- vehicleGroupCreate?: {
1114
- __typename?: 'IndividualVehicleGroup';
1115
- id: string;
1116
- code?: string | null;
1117
- name?: string | null;
1118
- description?: string | null;
1119
- externalId?: string | null;
1120
- driverCount?: number | null;
1121
- vehicleCount?: number | null;
1122
- insertedAt?: string | null;
1123
- updatedAt?: string | null;
1124
- } | null;
1125
- };
1126
- type VehicleGroupDriversAddMutationVariables = Exact<{
1127
- input: VehicleGroupDriversAddInput;
1128
- }>;
1129
- type VehicleGroupDriversAddMutation = {
1130
- __typename?: 'Mutation';
1131
- vehicleGroupDriversAdd?: {
1132
- __typename?: 'VehicleGroup';
1133
- id: string;
1134
- name?: string | null;
1135
- description?: string | null;
1136
- externalId?: string | null;
1137
- driverCount?: number | null;
1138
- vehicleCount?: number | null;
1139
- insertedAt?: string | null;
1140
- updatedAt?: string | null;
1141
- } | null;
1142
- };
1143
- type VehicleGroupVehiclesAddMutationVariables = Exact<{
1144
- input: VehicleGroupVehiclesAddInput;
1145
- }>;
1146
- type VehicleGroupVehiclesAddMutation = {
1147
- __typename?: 'Mutation';
1148
- vehicleGroupVehiclesAdd?: {
1149
- __typename?: 'VehicleGroup';
1150
- id: string;
1151
- name?: string | null;
1152
- description?: string | null;
1153
- externalId?: string | null;
1154
- driverCount?: number | null;
1155
- vehicleCount?: number | null;
1156
- insertedAt?: string | null;
1157
- updatedAt?: string | null;
1158
- } | null;
1159
- };
1160
- type VehicleUpdateMutationVariables = Exact<{
1161
- input: VehicleUpdateInput;
1162
- }>;
1163
- type VehicleUpdateMutation = {
1164
- __typename?: 'Mutation';
1165
- vehicleUpdate?: string | null;
1166
- };
1167
- type VehicleGroupsFilterQueryVariables = Exact<{
1168
- input: VehicleGroupsFilterInput;
1169
- }>;
1170
- type VehicleGroupsFilterQuery = {
1171
- __typename?: 'Query';
1172
- vehicleGroupsFilter?: {
1173
- __typename?: 'VehicleGroupsPage';
1174
- data?: Array<{
1175
- __typename?: 'VehicleGroup';
1176
- id: string;
1177
- name?: string | null;
1178
- description?: string | null;
1179
- externalId?: string | null;
1180
- } | null> | null;
1181
- meta?: {
1182
- __typename?: 'PageMeta';
1183
- limit?: number | null;
1184
- offset?: number | null;
1185
- total?: number | null;
1186
- } | null;
1187
- } | null;
1188
- };
1189
- type VehiclesOnboardMutationVariables = Exact<{
1190
- input: VehiclesOnboardInputList;
1191
- }>;
1192
- type VehiclesOnboardMutation = {
1193
- __typename?: 'Mutation';
1194
- vehiclesOnboard?: {
1195
- __typename?: 'VehiclesOnboardOutputList';
1196
- vehicles?: Array<{
1197
- __typename?: 'VehiclesOnboardOutput';
1198
- id?: string | null;
1199
- vin?: string | null;
1200
- vehicleGroupId: string;
1201
- success?: boolean | null;
1202
- error?: string | null;
1203
- } | null> | null;
1204
- } | null;
1205
- };
1206
705
  //#endregion
1207
- //#region src/client.d.ts
1208
- interface ElementPayClientConfig {
1209
- apiKey: string;
706
+ //#region src/user.d.ts
707
+ interface ElementPayUserConfig {
708
+ accessToken: string;
1210
709
  environment?: 'int' | 'stage';
1211
710
  endpoint?: string;
1212
711
  }
1213
- declare function createElementPayClient(config: ElementPayClientConfig): {
1214
- apiKeyCreate(variables: ApiKeyCreateMutationVariables$1, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<ApiKeyCreateMutation$1>;
1215
- organizationCreate(variables: OrganizationCreateMutationVariables$1, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<OrganizationCreateMutation$1>;
1216
- entityCreate(variables: EntityCreateMutationVariables$1, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<EntityCreateMutation$1>;
1217
- clientOnboard(variables: ClientOnboardMutationVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<ClientOnboardMutation>;
1218
- entityGetExternalId(variables?: EntityGetExternalIdQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<EntityGetExternalIdQuery>;
1219
- machineTokenizeUser(variables?: MachineTokenizeUserMutationVariables$1, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<MachineTokenizeUserMutation$1>;
1220
- provisionCard(variables: ProvisionCardMutationVariables$1, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<ProvisionCardMutation$1>;
1221
- provisionStatusUpdate(variables: ProvisionStatusUpdateMutationVariables$1, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<ProvisionStatusUpdateMutation$1>;
1222
- servicePay(variables: ServicePayMutationVariables$1, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<ServicePayMutation$1>;
1223
- ttpTokenization(variables: TtpTokenizationMutationVariables$1, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<TtpTokenizationMutation$1>;
1224
- userCreate(variables: UserCreateMutationVariables$1, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<UserCreateMutation$1>;
1225
- vehicleGroupCreate(variables: VehicleGroupCreateMutationVariables$1, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<VehicleGroupCreateMutation$1>;
1226
- vehicleGroupDriversAdd(variables: VehicleGroupDriversAddMutationVariables$1, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<VehicleGroupDriversAddMutation$1>;
1227
- vehicleGroupVehiclesAdd(variables: VehicleGroupVehiclesAddMutationVariables$1, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<VehicleGroupVehiclesAddMutation$1>;
1228
- vehicleUpdate(variables: VehicleUpdateMutationVariables$1, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<VehicleUpdateMutation$1>;
1229
- vehicleGroupsFilter(variables: VehicleGroupsFilterQueryVariables$1, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<VehicleGroupsFilterQuery$1>;
1230
- vehiclesOnboard(variables: VehiclesOnboardMutationVariables$1, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<VehiclesOnboardMutation$1>;
1231
- } | {
1232
- apiKeyCreate(variables: ApiKeyCreateMutationVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<ApiKeyCreateMutation>;
1233
- organizationCreate(variables: OrganizationCreateMutationVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<OrganizationCreateMutation>;
1234
- entityCreate(variables: EntityCreateMutationVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<EntityCreateMutation>;
1235
- machineTokenizeUser(variables?: MachineTokenizeUserMutationVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<MachineTokenizeUserMutation>;
712
+ declare function getUserSdk(config: ElementPayUserConfig): {
1236
713
  provisionCard(variables: ProvisionCardMutationVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<ProvisionCardMutation>;
1237
714
  provisionStatusUpdate(variables: ProvisionStatusUpdateMutationVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<ProvisionStatusUpdateMutation>;
1238
715
  servicePay(variables: ServicePayMutationVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<ServicePayMutation>;
1239
716
  ttpTokenization(variables: TtpTokenizationMutationVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<TtpTokenizationMutation>;
1240
- userCreate(variables: UserCreateMutationVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<UserCreateMutation>;
1241
- vehicleGroupCreate(variables: VehicleGroupCreateMutationVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<VehicleGroupCreateMutation>;
1242
- vehicleGroupDriversAdd(variables: VehicleGroupDriversAddMutationVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<VehicleGroupDriversAddMutation>;
1243
- vehicleGroupVehiclesAdd(variables: VehicleGroupVehiclesAddMutationVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<VehicleGroupVehiclesAddMutation>;
1244
- vehicleUpdate(variables: VehicleUpdateMutationVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<VehicleUpdateMutation>;
1245
- vehicleGroupsFilter(variables: VehicleGroupsFilterQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<VehicleGroupsFilterQuery>;
1246
- vehiclesOnboard(variables: VehiclesOnboardMutationVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<VehiclesOnboardMutation>;
1247
717
  };
1248
718
  //#endregion
1249
719
  //#region src/pubSub/interfaces.d.ts
@@ -1322,5 +792,5 @@ declare const serviceLocationEventToFuelSupplier: ({
1322
792
  //#region src/service-locations/index.d.ts
1323
793
  declare const serviceLocationPubSubMessageToFuelSupplier: (message: string) => ReturnType<typeof serviceLocationEventToFuelSupplier>;
1324
794
  //#endregion
1325
- export { type ElementPayClientConfig, createElementPayClient, serviceLocationPubSubMessageToFuelSupplier };
795
+ export { type ElementPayOrganizationConfig, type ElementPayUserConfig, getOrganizationSdk, getUserSdk, serviceLocationPubSubMessageToFuelSupplier };
1326
796
  //# sourceMappingURL=index.d.ts.map