@trackunit/custom-field-api 0.0.3 → 0.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/custom-field-api",
3
- "version": "0.0.3",
3
+ "version": "0.0.7",
4
4
  "engines": {
5
5
  "node": ">=18.x"
6
6
  },
@@ -58,96 +58,6 @@ export type Scalars = {
58
58
  output: any;
59
59
  };
60
60
  };
61
- /** Customer Account. */
62
- export type Account = Node & {
63
- __typename?: "Account";
64
- /** Account Entity ID */
65
- accountId: Scalars["ID"]["output"];
66
- /** The account name of the account. */
67
- accountName?: Maybe<Scalars["String"]["output"]>;
68
- /** The account type of the account. */
69
- accountType?: Maybe<AccountType>;
70
- /** The address of the account. */
71
- address?: Maybe<Address>;
72
- /** The contact information of the account. */
73
- contact?: Maybe<Contact>;
74
- /**
75
- * The custom fields for the account.
76
- *
77
- * ⚠️ This is a preview feature. This means it may change without notice. To indicate you accept these terms pass the HTTP header 'TU-PREVIEW: JUNGLE-DIGGER' with your query requests.
78
- *
79
- * ⚙️ Complexity cost: 10
80
- */
81
- customFields?: Maybe<CustomFieldValueAndDefinitionConnection>;
82
- /** The external reference of the account. */
83
- externalReference?: Maybe<Scalars["String"]["output"]>;
84
- /** Globally unique ID for Account */
85
- id: Scalars["ID"]["output"];
86
- /** When was the account updated at last. */
87
- updatedAt?: Maybe<Scalars["String"]["output"]>;
88
- };
89
- export declare const accountType: {
90
- readonly CustomerTest: "CUSTOMER_TEST";
91
- readonly Default: "DEFAULT";
92
- readonly InternalTest: "INTERNAL_TEST";
93
- readonly Stock: "STOCK";
94
- };
95
- export type AccountType = (typeof accountType)[keyof typeof accountType];
96
- /** The address object type. */
97
- export type Address = {
98
- __typename?: "Address";
99
- /** The city of the address. */
100
- city?: Maybe<Scalars["String"]["output"]>;
101
- /** The country of the address. */
102
- country?: Maybe<Scalars["String"]["output"]>;
103
- /** The street address. */
104
- streetAddress?: Maybe<Scalars["String"]["output"]>;
105
- /** The zip code or postal code of the address. */
106
- zipCode?: Maybe<Scalars["String"]["output"]>;
107
- };
108
- /** The contact information of the account. */
109
- export type Contact = {
110
- __typename?: "Contact";
111
- /** The email of the account. */
112
- email?: Maybe<Scalars["String"]["output"]>;
113
- /** The phone number of the account. */
114
- phoneNumber?: Maybe<Scalars["String"]["output"]>;
115
- };
116
- /** Custom field definition. */
117
- export type CustomFieldDefinition = {
118
- /** The definition ID of the custom field definition. */
119
- definitionId: Scalars["ID"]["output"];
120
- /** The description of the custom field definition. */
121
- description?: Maybe<Scalars["String"]["output"]>;
122
- /** The entity type of the custom field definition. */
123
- entityType?: Maybe<CustomFieldEntityType>;
124
- /** The key of the custom field definition. */
125
- key?: Maybe<Scalars["String"]["output"]>;
126
- /** The owner of the custom field definition. */
127
- owner?: Maybe<CustomFieldOwner>;
128
- /** Who can access the field value. Default is only within the users account. */
129
- scopeType?: Maybe<ScopeType>;
130
- /** The title of the custom field definition. */
131
- title?: Maybe<Scalars["String"]["output"]>;
132
- /** Title and description translations. */
133
- translations?: Maybe<Array<Maybe<CustomFieldDefinitionTranslations>>>;
134
- /** The type of the custom field definition. */
135
- type: CustomFieldType;
136
- /** If the custom field definition should be editable through the UI. */
137
- uiEditable?: Maybe<Scalars["Boolean"]["output"]>;
138
- /** If the custom field definition should be UI visible. */
139
- uiVisible?: Maybe<Scalars["Boolean"]["output"]>;
140
- };
141
- /** Definition title and description translations. */
142
- export type CustomFieldDefinitionTranslations = {
143
- __typename?: "CustomFieldDefinitionTranslations";
144
- /** The description in the provided language. */
145
- description?: Maybe<Scalars["String"]["output"]>;
146
- /** The translation language. */
147
- language?: Maybe<Scalars["String"]["output"]>;
148
- /** The title in the provided language. */
149
- title?: Maybe<Scalars["String"]["output"]>;
150
- };
151
61
  export declare const customFieldEntityType: {
152
62
  readonly Account: "ACCOUNT";
153
63
  readonly Asset: "ASSET";
@@ -155,28 +65,6 @@ export declare const customFieldEntityType: {
155
65
  readonly Site: "SITE";
156
66
  };
157
67
  export type CustomFieldEntityType = (typeof customFieldEntityType)[keyof typeof customFieldEntityType];
158
- /** Custom field owner. */
159
- export type CustomFieldOwner = {
160
- __typename?: "CustomFieldOwner";
161
- /** The account ID of the custom field owner. */
162
- accountId?: Maybe<Scalars["ID"]["output"]>;
163
- /** The iris app ID of the custom field owner. */
164
- irisAppId?: Maybe<Scalars["String"]["output"]>;
165
- /**
166
- * The marketplace entry associated with the custom field.
167
- *
168
- * ⚙️ Complexity cost: 10
169
- */
170
- marketplaceEntry?: Maybe<MarketplaceEntry>;
171
- /** The owner type of the custom field owner. */
172
- ownerType: CustomFieldOwnerType;
173
- };
174
- export declare const customFieldOwnerType: {
175
- readonly Account: "ACCOUNT";
176
- readonly IrisApp: "IRIS_APP";
177
- readonly Trackunit: "TRACKUNIT";
178
- };
179
- export type CustomFieldOwnerType = (typeof customFieldOwnerType)[keyof typeof customFieldOwnerType];
180
68
  export declare const customFieldType: {
181
69
  readonly Boolean: "BOOLEAN";
182
70
  readonly Date: "DATE";
@@ -190,93 +78,6 @@ export declare const customFieldType: {
190
78
  readonly WebAddress: "WEB_ADDRESS";
191
79
  };
192
80
  export type CustomFieldType = (typeof customFieldType)[keyof typeof customFieldType];
193
- /** Custom field value and definition. */
194
- export type CustomFieldValueAndDefinition = {
195
- /** The definition of the custom field value and definition. */
196
- definition: CustomFieldDefinition;
197
- /** The type of the custom field. */
198
- type: CustomFieldType;
199
- /** The value ID of the custom field value and definition. */
200
- valueId?: Maybe<Scalars["ID"]["output"]>;
201
- };
202
- /** Custom field value and definition connection. */
203
- export type CustomFieldValueAndDefinitionConnection = {
204
- __typename?: "CustomFieldValueAndDefinitionConnection";
205
- /** The edges of the custom field value and definition connection. */
206
- edges?: Maybe<Array<Maybe<CustomFieldValueAndDefinitionEdge>>>;
207
- /** The page info of the custom field value and definition connection. */
208
- pageInfo?: Maybe<PageInfo>;
209
- };
210
- /** Custom field value and definition edge. */
211
- export type CustomFieldValueAndDefinitionEdge = {
212
- __typename?: "CustomFieldValueAndDefinitionEdge";
213
- /** The cursor of the custom field value and definition edge. */
214
- cursor?: Maybe<Scalars["String"]["output"]>;
215
- /** The node of the custom field value and definition edge. */
216
- node?: Maybe<CustomFieldValueAndDefinition>;
217
- };
218
- /** An entry in the marketplace */
219
- export type MarketplaceEntry = {
220
- __typename?: "MarketplaceEntry";
221
- /** Short description of the marketplace entry */
222
- description?: Maybe<Scalars["String"]["output"]>;
223
- /** ID of the marketplace entry */
224
- id: Scalars["ID"]["output"];
225
- /** Iris App ID of the marketplace entry */
226
- irisAppId: Scalars["String"]["output"];
227
- /** Approved version of the marketplace entry */
228
- irisAppVersion?: Maybe<Scalars["String"]["output"]>;
229
- /** Name of the marketplace entry */
230
- name: Scalars["String"]["output"];
231
- /** ID of the application in Okta */
232
- oktaClientId?: Maybe<Scalars["String"]["output"]>;
233
- /** Name of the application in Okta */
234
- oktaName?: Maybe<Scalars["String"]["output"]>;
235
- /** ID of the policy associated with the application in Okta */
236
- policyId?: Maybe<Scalars["String"]["output"]>;
237
- /** Publisher of the Iris App */
238
- publisher?: Maybe<Account>;
239
- /** Scopes used by the application */
240
- scopes?: Maybe<Array<Maybe<Scope>>>;
241
- };
242
- /** The base model that all models that contain an ID should inherited from. */
243
- export type Node = {
244
- /** The unique identifier of the entity. */
245
- id: Scalars["ID"]["output"];
246
- };
247
- /** PageInfo is information about the pagination. You can use this information to request either the next or previous pages by using the input for 'before' or 'after' */
248
- export type PageInfo = {
249
- __typename?: "PageInfo";
250
- /** Total edges count. */
251
- count?: Maybe<Scalars["Int"]["output"]>;
252
- /**
253
- * The cursor representing the last record from the returned query.
254
- * Can be used to query before or after this record.
255
- */
256
- endCursor?: Maybe<Scalars["Cursor"]["output"]>;
257
- /** Whether the query has more records after the end cursor. */
258
- hasNextPage: Scalars["Boolean"]["output"];
259
- /** Whether the query has more records before the start cursor. */
260
- hasPreviousPage: Scalars["Boolean"]["output"];
261
- /**
262
- * The cursor representing the first record from the returned query.
263
- * Can be used to query before or after this record.
264
- */
265
- startCursor?: Maybe<Scalars["Cursor"]["output"]>;
266
- };
267
- /** Application scope */
268
- export type Scope = {
269
- __typename?: "Scope";
270
- /** Last change date time */
271
- changeDateTime?: Maybe<Scalars["DateTime"]["output"]>;
272
- /** Name of the scope */
273
- name: Scalars["String"]["output"];
274
- };
275
- export declare const scopeType: {
276
- readonly Account: "ACCOUNT";
277
- readonly Global: "GLOBAL";
278
- };
279
- export type ScopeType = (typeof scopeType)[keyof typeof scopeType];
280
81
  export declare const systemOfMeasurement: {
281
82
  readonly Si: "SI";
282
83
  readonly UsCustomary: "US_CUSTOMARY";