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