@autofleet/element-pay 1.0.0 → 1.0.2

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
@@ -3,12 +3,10 @@ import { GraphQLClient, RequestOptions } from "graphql-request";
3
3
  //#region src/generated/sdk.d.ts
4
4
  type Maybe<T> = T | null;
5
5
  type InputMaybe<T> = Maybe<T>;
6
- type Exact<T extends {
7
- [key: string]: unknown;
8
- }> = { [K in keyof T]: T[K] };
6
+ type Exact<T extends Record<string, unknown>> = { [K in keyof T]: T[K] };
9
7
  type GraphQLClientRequestHeaders = RequestOptions["requestHeaders"];
10
8
  /** All built-in and custom scalars, mapped to their actual values */
11
- type Scalars = {
9
+ interface Scalars {
12
10
  ID: {
13
11
  input: string;
14
12
  output: string;
@@ -37,17 +35,17 @@ type Scalars = {
37
35
  input: any;
38
36
  output: any;
39
37
  };
40
- };
38
+ }
41
39
  /** The address provided as an input when creating an organization. */
42
- type AddressInput = {
40
+ interface AddressInput {
43
41
  city: Scalars["String"]["input"];
44
42
  country: Scalars["String"]["input"];
45
43
  line1: Scalars["String"]["input"];
46
44
  line2?: InputMaybe<Scalars["String"]["input"]>;
47
45
  state: Scalars["String"]["input"];
48
46
  zip: Scalars["String"]["input"];
49
- };
50
- type EntityCreateInput = {
47
+ }
48
+ interface EntityCreateInput {
51
49
  /** Description of the entity. */
52
50
  description?: InputMaybe<Scalars["String"]["input"]>;
53
51
  /** To optionally store your own id to map between different systems. */
@@ -62,7 +60,7 @@ type EntityCreateInput = {
62
60
  organizationId?: InputMaybe<Scalars["ID"]["input"]>;
63
61
  /** ID of parent entity, if there is one. */
64
62
  parentId?: InputMaybe<Scalars["ID"]["input"]>;
65
- };
63
+ }
66
64
  declare enum FundingSource {
67
65
  /** Electronic bank transfer. */
68
66
  Ach = "ACH",
@@ -70,7 +68,7 @@ declare enum FundingSource {
70
68
  Parent = "PARENT",
71
69
  Unknown = "UNKNOWN",
72
70
  }
73
- type OrganizationCreateInput = {
71
+ interface OrganizationCreateInput {
74
72
  /** The address of the organization */
75
73
  address: AddressInput;
76
74
  /** Disable check location when vehicle data is down */
@@ -89,11 +87,11 @@ type OrganizationCreateInput = {
89
87
  unitsId?: InputMaybe<Scalars["String"]["input"]>;
90
88
  /** If enabled, syncs telematics data for a vehicle and removes ability to edit that vehicle */
91
89
  useTspMetadata?: InputMaybe<Scalars["Boolean"]["input"]>;
92
- };
90
+ }
93
91
  type OrganizationCreateMutationVariables = Exact<{
94
92
  input: OrganizationCreateInput;
95
93
  }>;
96
- type OrganizationCreateMutation = {
94
+ interface OrganizationCreateMutation {
97
95
  __typename?: "Mutation";
98
96
  organizationCreate?: {
99
97
  __typename?: "Organization";
@@ -114,11 +112,11 @@ type OrganizationCreateMutation = {
114
112
  zip?: string | null;
115
113
  } | null;
116
114
  } | null;
117
- };
115
+ }
118
116
  type EntityCreateMutationVariables = Exact<{
119
117
  input: EntityCreateInput;
120
118
  }>;
121
- type EntityCreateMutation = {
119
+ interface EntityCreateMutation {
122
120
  __typename?: "Mutation";
123
121
  entityCreate?: {
124
122
  __typename?: "Entity";
@@ -132,7 +130,7 @@ type EntityCreateMutation = {
132
130
  insertedAt?: string | null;
133
131
  updatedAt?: string | null;
134
132
  } | null;
135
- };
133
+ }
136
134
  type SdkFunctionWrapper = <T>(action: (requestHeaders?: Record<string, string>) => Promise<T>, operationName: string, operationType?: string, variables?: any) => Promise<T>;
137
135
  declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): {
138
136
  organizationCreate(variables: OrganizationCreateMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<OrganizationCreateMutation>;
package/lib/index.d.ts CHANGED
@@ -3,12 +3,10 @@ import { GraphQLClient, RequestOptions } from "graphql-request";
3
3
  //#region src/generated/sdk.d.ts
4
4
  type Maybe<T> = T | null;
5
5
  type InputMaybe<T> = Maybe<T>;
6
- type Exact<T extends {
7
- [key: string]: unknown;
8
- }> = { [K in keyof T]: T[K] };
6
+ type Exact<T extends Record<string, unknown>> = { [K in keyof T]: T[K] };
9
7
  type GraphQLClientRequestHeaders = RequestOptions["requestHeaders"];
10
8
  /** All built-in and custom scalars, mapped to their actual values */
11
- type Scalars = {
9
+ interface Scalars {
12
10
  ID: {
13
11
  input: string;
14
12
  output: string;
@@ -37,17 +35,17 @@ type Scalars = {
37
35
  input: any;
38
36
  output: any;
39
37
  };
40
- };
38
+ }
41
39
  /** The address provided as an input when creating an organization. */
42
- type AddressInput = {
40
+ interface AddressInput {
43
41
  city: Scalars["String"]["input"];
44
42
  country: Scalars["String"]["input"];
45
43
  line1: Scalars["String"]["input"];
46
44
  line2?: InputMaybe<Scalars["String"]["input"]>;
47
45
  state: Scalars["String"]["input"];
48
46
  zip: Scalars["String"]["input"];
49
- };
50
- type EntityCreateInput = {
47
+ }
48
+ interface EntityCreateInput {
51
49
  /** Description of the entity. */
52
50
  description?: InputMaybe<Scalars["String"]["input"]>;
53
51
  /** To optionally store your own id to map between different systems. */
@@ -62,7 +60,7 @@ type EntityCreateInput = {
62
60
  organizationId?: InputMaybe<Scalars["ID"]["input"]>;
63
61
  /** ID of parent entity, if there is one. */
64
62
  parentId?: InputMaybe<Scalars["ID"]["input"]>;
65
- };
63
+ }
66
64
  declare enum FundingSource {
67
65
  /** Electronic bank transfer. */
68
66
  Ach = "ACH",
@@ -70,7 +68,7 @@ declare enum FundingSource {
70
68
  Parent = "PARENT",
71
69
  Unknown = "UNKNOWN",
72
70
  }
73
- type OrganizationCreateInput = {
71
+ interface OrganizationCreateInput {
74
72
  /** The address of the organization */
75
73
  address: AddressInput;
76
74
  /** Disable check location when vehicle data is down */
@@ -89,11 +87,11 @@ type OrganizationCreateInput = {
89
87
  unitsId?: InputMaybe<Scalars["String"]["input"]>;
90
88
  /** If enabled, syncs telematics data for a vehicle and removes ability to edit that vehicle */
91
89
  useTspMetadata?: InputMaybe<Scalars["Boolean"]["input"]>;
92
- };
90
+ }
93
91
  type OrganizationCreateMutationVariables = Exact<{
94
92
  input: OrganizationCreateInput;
95
93
  }>;
96
- type OrganizationCreateMutation = {
94
+ interface OrganizationCreateMutation {
97
95
  __typename?: "Mutation";
98
96
  organizationCreate?: {
99
97
  __typename?: "Organization";
@@ -114,11 +112,11 @@ type OrganizationCreateMutation = {
114
112
  zip?: string | null;
115
113
  } | null;
116
114
  } | null;
117
- };
115
+ }
118
116
  type EntityCreateMutationVariables = Exact<{
119
117
  input: EntityCreateInput;
120
118
  }>;
121
- type EntityCreateMutation = {
119
+ interface EntityCreateMutation {
122
120
  __typename?: "Mutation";
123
121
  entityCreate?: {
124
122
  __typename?: "Entity";
@@ -132,7 +130,7 @@ type EntityCreateMutation = {
132
130
  insertedAt?: string | null;
133
131
  updatedAt?: string | null;
134
132
  } | null;
135
- };
133
+ }
136
134
  type SdkFunctionWrapper = <T>(action: (requestHeaders?: Record<string, string>) => Promise<T>, operationName: string, operationType?: string, variables?: any) => Promise<T>;
137
135
  declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): {
138
136
  organizationCreate(variables: OrganizationCreateMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<OrganizationCreateMutation>;