@autofleet/element-pay 2.1.5 → 2.1.7

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
@@ -141,7 +141,7 @@ type OrganizationCreateInput = {
141
141
  unitsId?: InputMaybe$1<Scalars$1['String']['input']>;
142
142
  useTspMetadata?: InputMaybe$1<Scalars$1['Boolean']['input']>;
143
143
  };
144
- type PageRequest = {
144
+ type PageRequest$1 = {
145
145
  limit?: InputMaybe$1<Scalars$1['Int']['input']>;
146
146
  offset?: InputMaybe$1<Scalars$1['Int']['input']>;
147
147
  };
@@ -165,7 +165,7 @@ declare enum RoleType {
165
165
  Manager = "MANAGER",
166
166
  ViewOnly = "VIEW_ONLY",
167
167
  }
168
- declare enum SortDirection {
168
+ declare enum SortDirection$1 {
169
169
  Asc = "ASC",
170
170
  AscNullsFirst = "ASC_NULLS_FIRST",
171
171
  AscNullsLast = "ASC_NULLS_LAST",
@@ -277,7 +277,7 @@ type VehicleGroupVehiclesRemoveInput = {
277
277
  };
278
278
  type VehicleGroupsFilterInput = {
279
279
  filter: VehicleGroupsFilterOptions;
280
- page: PageRequest;
280
+ page: PageRequest$1;
281
281
  sortOptions?: InputMaybe$1<VehicleGroupsSortOptions>;
282
282
  };
283
283
  type VehicleGroupsFilterOptions = {
@@ -294,7 +294,7 @@ declare enum VehicleGroupsSortField {
294
294
  VehicleCount = "VEHICLE_COUNT",
295
295
  }
296
296
  type VehicleGroupsSortOptions = {
297
- direction: SortDirection;
297
+ direction: SortDirection$1;
298
298
  orderBy: VehicleGroupsSortField;
299
299
  };
300
300
  type VehicleUpdateInput = {
@@ -307,7 +307,7 @@ type VehicleUpdateInput = {
307
307
  };
308
308
  type VehiclesFilterInput = {
309
309
  filter: VehiclesFilterOptions;
310
- page?: InputMaybe$1<PageRequest>;
310
+ page?: InputMaybe$1<PageRequest$1>;
311
311
  sortOptions?: InputMaybe$1<VehiclesSortOptions>;
312
312
  };
313
313
  type VehiclesFilterOptions = {
@@ -338,7 +338,7 @@ declare enum VehiclesSortField {
338
338
  Number = "NUMBER",
339
339
  }
340
340
  type VehiclesSortOptions = {
341
- direction: SortDirection;
341
+ direction: SortDirection$1;
342
342
  orderBy: VehiclesSortField;
343
343
  };
344
344
  type ApiKeyCreateMutationVariables = Exact$1<{
@@ -760,6 +760,10 @@ declare enum DigitalWallet {
760
760
  DigitalWalletAndroid = "DIGITAL_WALLET_ANDROID",
761
761
  DigitalWalletApple = "DIGITAL_WALLET_APPLE",
762
762
  }
763
+ type PageRequest = {
764
+ limit?: InputMaybe<Scalars['Int']['input']>;
765
+ offset?: InputMaybe<Scalars['Int']['input']>;
766
+ };
763
767
  declare enum PaymentMethodType {
764
768
  DirectConnect = "DIRECT_CONNECT",
765
769
  LinkedCard = "LINKED_CARD",
@@ -806,6 +810,66 @@ type ServicePayInput = {
806
810
  requestId: Scalars['ID']['input'];
807
811
  vehicleId: Scalars['ID']['input'];
808
812
  };
813
+ declare enum ServiceType {
814
+ Fees = "FEES",
815
+ Fuel = "FUEL",
816
+ Maintenance = "MAINTENANCE",
817
+ Parking = "PARKING",
818
+ Toll = "TOLL",
819
+ UnknownService = "UNKNOWN_SERVICE",
820
+ }
821
+ declare enum SortDirection {
822
+ Asc = "ASC",
823
+ AscNullsFirst = "ASC_NULLS_FIRST",
824
+ AscNullsLast = "ASC_NULLS_LAST",
825
+ Desc = "DESC",
826
+ DescNullsFirst = "DESC_NULLS_FIRST",
827
+ DescNullsLast = "DESC_NULLS_LAST",
828
+ }
829
+ type TransactionFilterAdditionalOptions = {
830
+ generatePdfReceipt?: InputMaybe<Scalars['Boolean']['input']>;
831
+ };
832
+ declare enum TransactionSortField {
833
+ Amount = "AMOUNT",
834
+ DriverName = "DRIVER_NAME",
835
+ LocalTime = "LOCAL_TIME",
836
+ Time = "TIME",
837
+ VehicleDescription = "VEHICLE_DESCRIPTION",
838
+ VehicleName = "VEHICLE_NAME",
839
+ }
840
+ declare enum TransactionType {
841
+ Invoice = "INVOICE",
842
+ Realtime = "REALTIME",
843
+ UnknownType = "UNKNOWN_TYPE",
844
+ }
845
+ type TransactionsFilterInput = {
846
+ additionalOptions?: InputMaybe<TransactionFilterAdditionalOptions>;
847
+ filter: TransactionsFilterOptions;
848
+ page: PageRequest;
849
+ sortOptions?: InputMaybe<TransactionsSortOptions>;
850
+ };
851
+ type TransactionsFilterOptions = {
852
+ entityId?: InputMaybe<Scalars['ID']['input']>;
853
+ fromDate?: InputMaybe<Scalars['String']['input']>;
854
+ fromInsertedDate?: InputMaybe<Scalars['String']['input']>;
855
+ fromLocalDate?: InputMaybe<Scalars['String']['input']>;
856
+ serviceTypes?: InputMaybe<Array<InputMaybe<ServiceType>>>;
857
+ toDate?: InputMaybe<Scalars['String']['input']>;
858
+ toInsertedDate?: InputMaybe<Scalars['String']['input']>;
859
+ toLocalDate?: InputMaybe<Scalars['String']['input']>;
860
+ userId?: InputMaybe<Scalars['ID']['input']>;
861
+ userIds?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
862
+ vehicleGroupExternalId?: InputMaybe<Scalars['ID']['input']>;
863
+ vehicleGroupId?: InputMaybe<Scalars['ID']['input']>;
864
+ vehicleGroupIds?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
865
+ vehicleId?: InputMaybe<Scalars['String']['input']>;
866
+ vehicleIds?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
867
+ vin?: InputMaybe<Scalars['String']['input']>;
868
+ };
869
+ type TransactionsSortOptions = {
870
+ direction: SortDirection;
871
+ orderBy: TransactionSortField;
872
+ };
809
873
  type TtpTokenizationInput = {
810
874
  deviceId: Scalars['String']['input'];
811
875
  requestId?: InputMaybe<Scalars['String']['input']>;
@@ -850,6 +914,139 @@ type ServicePayMutation = {
850
914
  transactionId: string;
851
915
  } | null;
852
916
  };
917
+ type TransactionsFilterQueryVariables = Exact<{
918
+ input: TransactionsFilterInput;
919
+ }>;
920
+ type TransactionsFilterQuery = {
921
+ __typename?: 'Query';
922
+ transactionsFilter?: {
923
+ __typename?: 'TransactionsPage';
924
+ meta?: {
925
+ __typename?: 'PageMeta';
926
+ limit?: number | null;
927
+ offset?: number | null;
928
+ total?: number | null;
929
+ } | null;
930
+ data?: Array<{
931
+ __typename?: 'Transaction';
932
+ id: string;
933
+ transactionTime?: string | null;
934
+ pdfReceiptUrl?: string | null;
935
+ transactionNumber?: number | null;
936
+ type?: TransactionType | null;
937
+ insertedAt?: string | null;
938
+ updatedAt?: string | null;
939
+ localTime?: string | null;
940
+ subtotal?: string | null;
941
+ taxAmount?: string | null;
942
+ totalAmount?: string | null;
943
+ currency?: string | null;
944
+ additionalInfo?: {
945
+ __typename?: 'AdditionalTransactionInfo';
946
+ pumpNumber?: number | null;
947
+ jobCode?: string | null;
948
+ odometer?: number | null;
949
+ } | null;
950
+ vehicle?: {
951
+ __typename?: 'Vehicle';
952
+ id?: string | null;
953
+ vin: string;
954
+ location?: {
955
+ __typename?: 'VehicleLocation';
956
+ position?: {
957
+ __typename?: 'Location';
958
+ latitude?: number | null;
959
+ longitude?: number | null;
960
+ } | null;
961
+ } | null;
962
+ fuel?: {
963
+ __typename?: 'VehicleFuel';
964
+ percent?: number | null;
965
+ level?: number | null;
966
+ } | null;
967
+ type?: {
968
+ __typename?: 'VehicleType';
969
+ name?: string | null;
970
+ serialNumber?: string | null;
971
+ internalDescription?: string | null;
972
+ internalNumber?: string | null;
973
+ licensePlate?: string | null;
974
+ } | null;
975
+ details?: {
976
+ __typename?: 'VehicleDetails';
977
+ description?: string | null;
978
+ make?: string | null;
979
+ model?: string | null;
980
+ year?: string | null;
981
+ } | null;
982
+ } | null;
983
+ position?: {
984
+ __typename?: 'Location';
985
+ latitude?: number | null;
986
+ longitude?: number | null;
987
+ } | null;
988
+ location?: {
989
+ __typename?: 'ServiceLocation';
990
+ id: string;
991
+ name: string;
992
+ brand?: string | null;
993
+ brandLabel?: string | null;
994
+ address?: {
995
+ __typename?: 'Address';
996
+ line1?: string | null;
997
+ line2?: string | null;
998
+ city?: string | null;
999
+ state?: string | null;
1000
+ country?: string | null;
1001
+ zip?: string | null;
1002
+ } | null;
1003
+ position?: {
1004
+ __typename?: 'Location';
1005
+ latitude?: number | null;
1006
+ longitude?: number | null;
1007
+ } | null;
1008
+ } | null;
1009
+ driver?: {
1010
+ __typename?: 'User';
1011
+ id?: string | null;
1012
+ externalId?: string | null;
1013
+ username?: string | null;
1014
+ email?: string | null;
1015
+ phoneNumber?: string | null;
1016
+ firstName?: string | null;
1017
+ middleName?: string | null;
1018
+ lastName?: string | null;
1019
+ fullName?: string | null;
1020
+ } | null;
1021
+ vehicleGroup?: {
1022
+ __typename?: 'VehicleGroup';
1023
+ id: string;
1024
+ name?: string | null;
1025
+ } | null;
1026
+ entity?: {
1027
+ __typename?: 'Entity';
1028
+ id: string;
1029
+ name?: string | null;
1030
+ } | null;
1031
+ items?: Array<{
1032
+ __typename?: 'TransactionItem';
1033
+ id?: string | null;
1034
+ serviceType?: ServiceType | null;
1035
+ line?: string | null;
1036
+ quantity?: string | null;
1037
+ name?: string | null;
1038
+ unitPrice?: string | null;
1039
+ units?: string | null;
1040
+ amount?: string | null;
1041
+ } | null> | null;
1042
+ statuses?: Array<{
1043
+ __typename?: 'TransactionStatus';
1044
+ id?: string | null;
1045
+ status?: string | null;
1046
+ } | null> | null;
1047
+ } | null> | null;
1048
+ } | null;
1049
+ };
853
1050
  type TtpTokenizationMutationVariables = Exact<{
854
1051
  input: TtpTokenizationInput;
855
1052
  }>;
@@ -885,6 +1082,7 @@ declare function getUserSdk(config: ElementPayUserConfig): {
885
1082
  provisionCard(variables: ProvisionCardMutationVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<ProvisionCardMutation>;
886
1083
  provisionStatusUpdate(variables: ProvisionStatusUpdateMutationVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<ProvisionStatusUpdateMutation>;
887
1084
  servicePay(variables: ServicePayMutationVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<ServicePayMutation>;
1085
+ transactionsFilter(variables: TransactionsFilterQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<TransactionsFilterQuery>;
888
1086
  ttpTokenization(variables: TtpTokenizationMutationVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<TtpTokenizationMutation>;
889
1087
  };
890
1088
  //#endregion
package/lib/index.d.ts CHANGED
@@ -142,7 +142,7 @@ type OrganizationCreateInput = {
142
142
  unitsId?: InputMaybe$1<Scalars$1['String']['input']>;
143
143
  useTspMetadata?: InputMaybe$1<Scalars$1['Boolean']['input']>;
144
144
  };
145
- type PageRequest = {
145
+ type PageRequest$1 = {
146
146
  limit?: InputMaybe$1<Scalars$1['Int']['input']>;
147
147
  offset?: InputMaybe$1<Scalars$1['Int']['input']>;
148
148
  };
@@ -166,7 +166,7 @@ declare enum RoleType {
166
166
  Manager = "MANAGER",
167
167
  ViewOnly = "VIEW_ONLY",
168
168
  }
169
- declare enum SortDirection {
169
+ declare enum SortDirection$1 {
170
170
  Asc = "ASC",
171
171
  AscNullsFirst = "ASC_NULLS_FIRST",
172
172
  AscNullsLast = "ASC_NULLS_LAST",
@@ -278,7 +278,7 @@ type VehicleGroupVehiclesRemoveInput = {
278
278
  };
279
279
  type VehicleGroupsFilterInput = {
280
280
  filter: VehicleGroupsFilterOptions;
281
- page: PageRequest;
281
+ page: PageRequest$1;
282
282
  sortOptions?: InputMaybe$1<VehicleGroupsSortOptions>;
283
283
  };
284
284
  type VehicleGroupsFilterOptions = {
@@ -295,7 +295,7 @@ declare enum VehicleGroupsSortField {
295
295
  VehicleCount = "VEHICLE_COUNT",
296
296
  }
297
297
  type VehicleGroupsSortOptions = {
298
- direction: SortDirection;
298
+ direction: SortDirection$1;
299
299
  orderBy: VehicleGroupsSortField;
300
300
  };
301
301
  type VehicleUpdateInput = {
@@ -308,7 +308,7 @@ type VehicleUpdateInput = {
308
308
  };
309
309
  type VehiclesFilterInput = {
310
310
  filter: VehiclesFilterOptions;
311
- page?: InputMaybe$1<PageRequest>;
311
+ page?: InputMaybe$1<PageRequest$1>;
312
312
  sortOptions?: InputMaybe$1<VehiclesSortOptions>;
313
313
  };
314
314
  type VehiclesFilterOptions = {
@@ -339,7 +339,7 @@ declare enum VehiclesSortField {
339
339
  Number = "NUMBER",
340
340
  }
341
341
  type VehiclesSortOptions = {
342
- direction: SortDirection;
342
+ direction: SortDirection$1;
343
343
  orderBy: VehiclesSortField;
344
344
  };
345
345
  type ApiKeyCreateMutationVariables = Exact$1<{
@@ -761,6 +761,10 @@ declare enum DigitalWallet {
761
761
  DigitalWalletAndroid = "DIGITAL_WALLET_ANDROID",
762
762
  DigitalWalletApple = "DIGITAL_WALLET_APPLE",
763
763
  }
764
+ type PageRequest = {
765
+ limit?: InputMaybe<Scalars['Int']['input']>;
766
+ offset?: InputMaybe<Scalars['Int']['input']>;
767
+ };
764
768
  declare enum PaymentMethodType {
765
769
  DirectConnect = "DIRECT_CONNECT",
766
770
  LinkedCard = "LINKED_CARD",
@@ -807,6 +811,66 @@ type ServicePayInput = {
807
811
  requestId: Scalars['ID']['input'];
808
812
  vehicleId: Scalars['ID']['input'];
809
813
  };
814
+ declare enum ServiceType {
815
+ Fees = "FEES",
816
+ Fuel = "FUEL",
817
+ Maintenance = "MAINTENANCE",
818
+ Parking = "PARKING",
819
+ Toll = "TOLL",
820
+ UnknownService = "UNKNOWN_SERVICE",
821
+ }
822
+ declare enum SortDirection {
823
+ Asc = "ASC",
824
+ AscNullsFirst = "ASC_NULLS_FIRST",
825
+ AscNullsLast = "ASC_NULLS_LAST",
826
+ Desc = "DESC",
827
+ DescNullsFirst = "DESC_NULLS_FIRST",
828
+ DescNullsLast = "DESC_NULLS_LAST",
829
+ }
830
+ type TransactionFilterAdditionalOptions = {
831
+ generatePdfReceipt?: InputMaybe<Scalars['Boolean']['input']>;
832
+ };
833
+ declare enum TransactionSortField {
834
+ Amount = "AMOUNT",
835
+ DriverName = "DRIVER_NAME",
836
+ LocalTime = "LOCAL_TIME",
837
+ Time = "TIME",
838
+ VehicleDescription = "VEHICLE_DESCRIPTION",
839
+ VehicleName = "VEHICLE_NAME",
840
+ }
841
+ declare enum TransactionType {
842
+ Invoice = "INVOICE",
843
+ Realtime = "REALTIME",
844
+ UnknownType = "UNKNOWN_TYPE",
845
+ }
846
+ type TransactionsFilterInput = {
847
+ additionalOptions?: InputMaybe<TransactionFilterAdditionalOptions>;
848
+ filter: TransactionsFilterOptions;
849
+ page: PageRequest;
850
+ sortOptions?: InputMaybe<TransactionsSortOptions>;
851
+ };
852
+ type TransactionsFilterOptions = {
853
+ entityId?: InputMaybe<Scalars['ID']['input']>;
854
+ fromDate?: InputMaybe<Scalars['String']['input']>;
855
+ fromInsertedDate?: InputMaybe<Scalars['String']['input']>;
856
+ fromLocalDate?: InputMaybe<Scalars['String']['input']>;
857
+ serviceTypes?: InputMaybe<Array<InputMaybe<ServiceType>>>;
858
+ toDate?: InputMaybe<Scalars['String']['input']>;
859
+ toInsertedDate?: InputMaybe<Scalars['String']['input']>;
860
+ toLocalDate?: InputMaybe<Scalars['String']['input']>;
861
+ userId?: InputMaybe<Scalars['ID']['input']>;
862
+ userIds?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
863
+ vehicleGroupExternalId?: InputMaybe<Scalars['ID']['input']>;
864
+ vehicleGroupId?: InputMaybe<Scalars['ID']['input']>;
865
+ vehicleGroupIds?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
866
+ vehicleId?: InputMaybe<Scalars['String']['input']>;
867
+ vehicleIds?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
868
+ vin?: InputMaybe<Scalars['String']['input']>;
869
+ };
870
+ type TransactionsSortOptions = {
871
+ direction: SortDirection;
872
+ orderBy: TransactionSortField;
873
+ };
810
874
  type TtpTokenizationInput = {
811
875
  deviceId: Scalars['String']['input'];
812
876
  requestId?: InputMaybe<Scalars['String']['input']>;
@@ -851,6 +915,139 @@ type ServicePayMutation = {
851
915
  transactionId: string;
852
916
  } | null;
853
917
  };
918
+ type TransactionsFilterQueryVariables = Exact<{
919
+ input: TransactionsFilterInput;
920
+ }>;
921
+ type TransactionsFilterQuery = {
922
+ __typename?: 'Query';
923
+ transactionsFilter?: {
924
+ __typename?: 'TransactionsPage';
925
+ meta?: {
926
+ __typename?: 'PageMeta';
927
+ limit?: number | null;
928
+ offset?: number | null;
929
+ total?: number | null;
930
+ } | null;
931
+ data?: Array<{
932
+ __typename?: 'Transaction';
933
+ id: string;
934
+ transactionTime?: string | null;
935
+ pdfReceiptUrl?: string | null;
936
+ transactionNumber?: number | null;
937
+ type?: TransactionType | null;
938
+ insertedAt?: string | null;
939
+ updatedAt?: string | null;
940
+ localTime?: string | null;
941
+ subtotal?: string | null;
942
+ taxAmount?: string | null;
943
+ totalAmount?: string | null;
944
+ currency?: string | null;
945
+ additionalInfo?: {
946
+ __typename?: 'AdditionalTransactionInfo';
947
+ pumpNumber?: number | null;
948
+ jobCode?: string | null;
949
+ odometer?: number | null;
950
+ } | null;
951
+ vehicle?: {
952
+ __typename?: 'Vehicle';
953
+ id?: string | null;
954
+ vin: string;
955
+ location?: {
956
+ __typename?: 'VehicleLocation';
957
+ position?: {
958
+ __typename?: 'Location';
959
+ latitude?: number | null;
960
+ longitude?: number | null;
961
+ } | null;
962
+ } | null;
963
+ fuel?: {
964
+ __typename?: 'VehicleFuel';
965
+ percent?: number | null;
966
+ level?: number | null;
967
+ } | null;
968
+ type?: {
969
+ __typename?: 'VehicleType';
970
+ name?: string | null;
971
+ serialNumber?: string | null;
972
+ internalDescription?: string | null;
973
+ internalNumber?: string | null;
974
+ licensePlate?: string | null;
975
+ } | null;
976
+ details?: {
977
+ __typename?: 'VehicleDetails';
978
+ description?: string | null;
979
+ make?: string | null;
980
+ model?: string | null;
981
+ year?: string | null;
982
+ } | null;
983
+ } | null;
984
+ position?: {
985
+ __typename?: 'Location';
986
+ latitude?: number | null;
987
+ longitude?: number | null;
988
+ } | null;
989
+ location?: {
990
+ __typename?: 'ServiceLocation';
991
+ id: string;
992
+ name: string;
993
+ brand?: string | null;
994
+ brandLabel?: string | null;
995
+ address?: {
996
+ __typename?: 'Address';
997
+ line1?: string | null;
998
+ line2?: string | null;
999
+ city?: string | null;
1000
+ state?: string | null;
1001
+ country?: string | null;
1002
+ zip?: string | null;
1003
+ } | null;
1004
+ position?: {
1005
+ __typename?: 'Location';
1006
+ latitude?: number | null;
1007
+ longitude?: number | null;
1008
+ } | null;
1009
+ } | null;
1010
+ driver?: {
1011
+ __typename?: 'User';
1012
+ id?: string | null;
1013
+ externalId?: string | null;
1014
+ username?: string | null;
1015
+ email?: string | null;
1016
+ phoneNumber?: string | null;
1017
+ firstName?: string | null;
1018
+ middleName?: string | null;
1019
+ lastName?: string | null;
1020
+ fullName?: string | null;
1021
+ } | null;
1022
+ vehicleGroup?: {
1023
+ __typename?: 'VehicleGroup';
1024
+ id: string;
1025
+ name?: string | null;
1026
+ } | null;
1027
+ entity?: {
1028
+ __typename?: 'Entity';
1029
+ id: string;
1030
+ name?: string | null;
1031
+ } | null;
1032
+ items?: Array<{
1033
+ __typename?: 'TransactionItem';
1034
+ id?: string | null;
1035
+ serviceType?: ServiceType | null;
1036
+ line?: string | null;
1037
+ quantity?: string | null;
1038
+ name?: string | null;
1039
+ unitPrice?: string | null;
1040
+ units?: string | null;
1041
+ amount?: string | null;
1042
+ } | null> | null;
1043
+ statuses?: Array<{
1044
+ __typename?: 'TransactionStatus';
1045
+ id?: string | null;
1046
+ status?: string | null;
1047
+ } | null> | null;
1048
+ } | null> | null;
1049
+ } | null;
1050
+ };
854
1051
  type TtpTokenizationMutationVariables = Exact<{
855
1052
  input: TtpTokenizationInput;
856
1053
  }>;
@@ -886,6 +1083,7 @@ declare function getUserSdk(config: ElementPayUserConfig): {
886
1083
  provisionCard(variables: ProvisionCardMutationVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<ProvisionCardMutation>;
887
1084
  provisionStatusUpdate(variables: ProvisionStatusUpdateMutationVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<ProvisionStatusUpdateMutation>;
888
1085
  servicePay(variables: ServicePayMutationVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<ServicePayMutation>;
1086
+ transactionsFilter(variables: TransactionsFilterQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<TransactionsFilterQuery>;
889
1087
  ttpTokenization(variables: TtpTokenizationMutationVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<TtpTokenizationMutation>;
890
1088
  };
891
1089
  //#endregion
package/lib/index.js CHANGED
@@ -281,6 +281,117 @@ import{GraphQLClient as e}from"graphql-request";import t from"graphql-tag";impor
281
281
  }
282
282
  }
283
283
  `,M=t`
284
+ query transactionsFilter($input: TransactionsFilterInput!) {
285
+ transactionsFilter(input: $input) {
286
+ meta {
287
+ limit
288
+ offset
289
+ total
290
+ }
291
+ data {
292
+ id
293
+ transactionTime
294
+ pdfReceiptUrl
295
+ transactionNumber
296
+ type
297
+ insertedAt
298
+ updatedAt
299
+ localTime
300
+ additionalInfo {
301
+ pumpNumber
302
+ jobCode
303
+ odometer
304
+ }
305
+ vehicle {
306
+ id
307
+ vin
308
+ location {
309
+ position {
310
+ latitude
311
+ longitude
312
+ }
313
+ }
314
+ fuel {
315
+ percent
316
+ level
317
+ }
318
+ type {
319
+ name
320
+ serialNumber
321
+ internalDescription
322
+ internalNumber
323
+ licensePlate
324
+ }
325
+ details {
326
+ description
327
+ make
328
+ model
329
+ year
330
+ }
331
+ }
332
+ position {
333
+ latitude
334
+ longitude
335
+ }
336
+ location {
337
+ id
338
+ name
339
+ address {
340
+ line1
341
+ line2
342
+ city
343
+ state
344
+ country
345
+ zip
346
+ }
347
+ position {
348
+ latitude
349
+ longitude
350
+ }
351
+ brand
352
+ brandLabel
353
+ }
354
+ driver {
355
+ id
356
+ externalId
357
+ username
358
+ email
359
+ phoneNumber
360
+ firstName
361
+ middleName
362
+ lastName
363
+ fullName
364
+ }
365
+ vehicleGroup {
366
+ id
367
+ name
368
+ }
369
+ entity {
370
+ id
371
+ name
372
+ }
373
+ items {
374
+ id
375
+ serviceType
376
+ line
377
+ quantity
378
+ name
379
+ unitPrice
380
+ units
381
+ amount
382
+ }
383
+ statuses {
384
+ id
385
+ status
386
+ }
387
+ subtotal
388
+ taxAmount
389
+ totalAmount
390
+ currency
391
+ }
392
+ }
393
+ }
394
+ `,N=t`
284
395
  mutation ttpTokenization($input: TtpTokenizationInput!) {
285
396
  ttpTokenization(input: $input) {
286
397
  requestId
@@ -299,5 +410,5 @@ import{GraphQLClient as e}from"graphql-request";import t from"graphql-tag";impor
299
410
  cardFlag
300
411
  }
301
412
  }
302
- `,N=(e,t,n,r)=>e();function P(e,t=N){return{provisionCard(n,r,i){return t(t=>e.request({document:k,variables:n,requestHeaders:{...r,...t},signal:i}),`provisionCard`,`mutation`,n)},provisionStatusUpdate(n,r,i){return t(t=>e.request({document:A,variables:n,requestHeaders:{...r,...t},signal:i}),`provisionStatusUpdate`,`mutation`,n)},servicePay(n,r,i){return t(t=>e.request({document:j,variables:n,requestHeaders:{...r,...t},signal:i}),`servicePay`,`mutation`,n)},ttpTokenization(n,r,i){return t(t=>e.request({document:M,variables:n,requestHeaders:{...r,...t},signal:i}),`ttpTokenization`,`mutation`,n)}}}function F(t){let n=t.environment??`stage`;return P(new e(t.endpoint??D[n],{headers:{Authorization:`Bearer ${t.accessToken}`,"Content-Type":`application/json`}}))}const I=e=>n(Buffer.from(e,`base64`)),L=e=>{let t=I(e);if(Buffer.isBuffer(t.ID)&&(t.ID=t.ID.toString(`hex`)),Buffer.isBuffer(t.ServiceLocation)){let e=t.ServiceLocation.toString(`utf8`);t.ServiceLocation=JSON.parse(e)}return t},R={EXXON:r.EXXONMOBIL,MOBIL:r.EXXONMOBIL,SHELL:r.SHELL,SUNOCO:r.SUNOCO},z={REGULAR:i.UNLEADED_REGULAR,MID_GRADE_UNLEADED:i.UNLEADED_PLUS,"MID GRADE UNLEADED":i.UNLEADED_PLUS,UNLEADED_PREMIUM:i.UNLEADED_PREMIUM,"UNLEADED PREMIUM":i.UNLEADED_PREMIUM,DIESEL:i.DIESEL_REGULAR,DIESEL_PREMIUM:i.DIESEL_PREMIUM,"DIESEL PREMIUM":i.DIESEL_PREMIUM,OTHER_FUEL:i.OTHER_FUEL,"OTHER FUEL":i.OTHER_FUEL,HI_FLOW_DIESEL:i.HI_FLOW_DIESEL,"HI-FLOW DIESEL":i.HI_FLOW_DIESEL},B=e=>e.reduce((e,t)=>{let n=z[t.name];return n&&(e[n]=0),e},{}),V=e=>(e??[]).map(({name:e,description:t})=>({name:e,description:t})),H=e=>Object.entries(e.ExternalIdMap??{}).find(([,t])=>t===e.PriceApiId)?.[0],U=({serviceLocationEvent:e})=>{let t=e.ServiceLocation,{address:n,geocoded:r,services:i,amenities:a}=t;return{acceptElementPay:!0,address:[n.line1,n.line2,n.city,n.state,n.zip].filter(Boolean).join(`, `),externalId:t.id,name:t.name,brandName:R[t.provider.name]||null,lat:r.lat,lng:r.lng,directPayEnabled:!t.out_of_network,ttpEnabled:t.ttp_enabled,isActive:t.enabled&&!t.deleted_at,typesPrices:B(i),amenities:V(a),priceSourceId:e.PriceApiId,priceSourceType:H(e)}},W=e=>U({serviceLocationEvent:L(e)});export{O as getOrganizationSdk,F as getUserSdk,W as serviceLocationPubSubMessageToFuelSupplier};
413
+ `,P=(e,t,n,r)=>e();function F(e,t=P){return{provisionCard(n,r,i){return t(t=>e.request({document:k,variables:n,requestHeaders:{...r,...t},signal:i}),`provisionCard`,`mutation`,n)},provisionStatusUpdate(n,r,i){return t(t=>e.request({document:A,variables:n,requestHeaders:{...r,...t},signal:i}),`provisionStatusUpdate`,`mutation`,n)},servicePay(n,r,i){return t(t=>e.request({document:j,variables:n,requestHeaders:{...r,...t},signal:i}),`servicePay`,`mutation`,n)},transactionsFilter(n,r,i){return t(t=>e.request({document:M,variables:n,requestHeaders:{...r,...t},signal:i}),`transactionsFilter`,`query`,n)},ttpTokenization(n,r,i){return t(t=>e.request({document:N,variables:n,requestHeaders:{...r,...t},signal:i}),`ttpTokenization`,`mutation`,n)}}}function I(t){let n=t.environment??`stage`;return F(new e(t.endpoint??D[n],{headers:{Authorization:`Bearer ${t.accessToken}`,"Content-Type":`application/json`}}))}const L=e=>n(Buffer.from(e,`base64`)),R=e=>{let t=L(e);if(Buffer.isBuffer(t.ID)&&(t.ID=t.ID.toString(`hex`)),Buffer.isBuffer(t.ServiceLocation)){let e=t.ServiceLocation.toString(`utf8`);t.ServiceLocation=JSON.parse(e)}return t},z={EXXON:r.EXXONMOBIL,MOBIL:r.EXXONMOBIL,SHELL:r.SHELL,SUNOCO:r.SUNOCO},B={REGULAR:i.UNLEADED_REGULAR,MID_GRADE_UNLEADED:i.UNLEADED_PLUS,"MID GRADE UNLEADED":i.UNLEADED_PLUS,UNLEADED_PREMIUM:i.UNLEADED_PREMIUM,"UNLEADED PREMIUM":i.UNLEADED_PREMIUM,DIESEL:i.DIESEL_REGULAR,DIESEL_PREMIUM:i.DIESEL_PREMIUM,"DIESEL PREMIUM":i.DIESEL_PREMIUM,OTHER_FUEL:i.OTHER_FUEL,"OTHER FUEL":i.OTHER_FUEL,HI_FLOW_DIESEL:i.HI_FLOW_DIESEL,"HI-FLOW DIESEL":i.HI_FLOW_DIESEL},V=e=>e.reduce((e,t)=>{let n=B[t.name];return n&&(e[n]=0),e},{}),H=e=>(e??[]).map(({name:e,description:t})=>({name:e,description:t})),U=e=>Object.entries(e.ExternalIdMap??{}).find(([,t])=>t===e.PriceApiId)?.[0],W=({serviceLocationEvent:e})=>{let t=e.ServiceLocation,{address:n,geocoded:r,services:i,amenities:a}=t;return{acceptElementPay:!0,address:[n.line1,n.line2,n.city,n.state,n.zip].filter(Boolean).join(`, `),externalId:t.id,name:t.name,brandName:z[t.provider.name]||null,lat:r.lat,lng:r.lng,directPayEnabled:!t.out_of_network,ttpEnabled:t.ttp_enabled,isActive:t.enabled&&!t.deleted_at,typesPrices:V(i),amenities:H(a),priceSourceId:e.PriceApiId,priceSourceType:U(e)}},G=e=>W({serviceLocationEvent:R(e)});export{O as getOrganizationSdk,I as getUserSdk,G as serviceLocationPubSubMessageToFuelSupplier};
303
414
  //# sourceMappingURL=index.js.map