@autofleet/element-pay 1.1.2 → 1.1.3

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