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

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