@zapier/zapier-sdk 0.18.4 → 0.19.0
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/CHANGELOG.md +35 -0
- package/README.md +43 -31
- package/dist/index.cjs +365 -64
- package/dist/index.d.mts +220 -33
- package/dist/index.d.ts +2541 -40
- package/dist/index.mjs +345 -63
- package/package.json +14 -13
- package/dist/api/auth.d.ts +0 -19
- package/dist/api/auth.d.ts.map +0 -1
- package/dist/api/auth.js +0 -70
- package/dist/api/auth.test.d.ts +0 -2
- package/dist/api/auth.test.d.ts.map +0 -1
- package/dist/api/auth.test.js +0 -220
- package/dist/api/client.d.ts +0 -9
- package/dist/api/client.d.ts.map +0 -1
- package/dist/api/client.js +0 -356
- package/dist/api/client.test.d.ts +0 -2
- package/dist/api/client.test.d.ts.map +0 -1
- package/dist/api/client.test.js +0 -96
- package/dist/api/debug.d.ts +0 -14
- package/dist/api/debug.d.ts.map +0 -1
- package/dist/api/debug.js +0 -131
- package/dist/api/debug.test.d.ts +0 -2
- package/dist/api/debug.test.d.ts.map +0 -1
- package/dist/api/debug.test.js +0 -59
- package/dist/api/index.d.ts +0 -30
- package/dist/api/index.d.ts.map +0 -1
- package/dist/api/index.js +0 -43
- package/dist/api/polling.d.ts +0 -46
- package/dist/api/polling.d.ts.map +0 -1
- package/dist/api/polling.js +0 -139
- package/dist/api/polling.test.d.ts +0 -2
- package/dist/api/polling.test.d.ts.map +0 -1
- package/dist/api/polling.test.js +0 -318
- package/dist/api/schemas.d.ts +0 -422
- package/dist/api/schemas.d.ts.map +0 -1
- package/dist/api/schemas.js +0 -322
- package/dist/api/types.d.ts +0 -83
- package/dist/api/types.d.ts.map +0 -1
- package/dist/api/types.js +0 -1
- package/dist/auth.d.ts +0 -52
- package/dist/auth.d.ts.map +0 -1
- package/dist/auth.js +0 -72
- package/dist/auth.test.d.ts +0 -2
- package/dist/auth.test.d.ts.map +0 -1
- package/dist/auth.test.js +0 -102
- package/dist/constants.d.ts +0 -14
- package/dist/constants.d.ts.map +0 -1
- package/dist/constants.js +0 -13
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -42
- package/dist/plugins/api/index.d.ts +0 -12
- package/dist/plugins/api/index.d.ts.map +0 -1
- package/dist/plugins/api/index.js +0 -24
- package/dist/plugins/apps/index.d.ts +0 -15
- package/dist/plugins/apps/index.d.ts.map +0 -1
- package/dist/plugins/apps/index.js +0 -112
- package/dist/plugins/apps/schemas.d.ts +0 -42
- package/dist/plugins/apps/schemas.d.ts.map +0 -1
- package/dist/plugins/apps/schemas.js +0 -14
- package/dist/plugins/eventEmission/builders.d.ts +0 -14
- package/dist/plugins/eventEmission/builders.d.ts.map +0 -1
- package/dist/plugins/eventEmission/builders.js +0 -109
- package/dist/plugins/eventEmission/index.d.ts +0 -38
- package/dist/plugins/eventEmission/index.d.ts.map +0 -1
- package/dist/plugins/eventEmission/index.js +0 -336
- package/dist/plugins/eventEmission/index.test.d.ts +0 -5
- package/dist/plugins/eventEmission/index.test.d.ts.map +0 -1
- package/dist/plugins/eventEmission/index.test.js +0 -581
- package/dist/plugins/eventEmission/transport.d.ts +0 -27
- package/dist/plugins/eventEmission/transport.d.ts.map +0 -1
- package/dist/plugins/eventEmission/transport.js +0 -104
- package/dist/plugins/eventEmission/transport.test.d.ts +0 -5
- package/dist/plugins/eventEmission/transport.test.d.ts.map +0 -1
- package/dist/plugins/eventEmission/transport.test.js +0 -164
- package/dist/plugins/eventEmission/types.d.ts +0 -63
- package/dist/plugins/eventEmission/types.d.ts.map +0 -1
- package/dist/plugins/eventEmission/types.js +0 -1
- package/dist/plugins/eventEmission/utils.d.ts +0 -45
- package/dist/plugins/eventEmission/utils.d.ts.map +0 -1
- package/dist/plugins/eventEmission/utils.js +0 -114
- package/dist/plugins/fetch/index.d.ts +0 -36
- package/dist/plugins/fetch/index.d.ts.map +0 -1
- package/dist/plugins/fetch/index.js +0 -62
- package/dist/plugins/fetch/schemas.d.ts +0 -19
- package/dist/plugins/fetch/schemas.d.ts.map +0 -1
- package/dist/plugins/fetch/schemas.js +0 -31
- package/dist/plugins/findFirstAuthentication/index.d.ts +0 -21
- package/dist/plugins/findFirstAuthentication/index.d.ts.map +0 -1
- package/dist/plugins/findFirstAuthentication/index.js +0 -36
- package/dist/plugins/findFirstAuthentication/index.test.d.ts +0 -2
- package/dist/plugins/findFirstAuthentication/index.test.d.ts.map +0 -1
- package/dist/plugins/findFirstAuthentication/index.test.js +0 -177
- package/dist/plugins/findFirstAuthentication/schemas.d.ts +0 -20
- package/dist/plugins/findFirstAuthentication/schemas.d.ts.map +0 -1
- package/dist/plugins/findFirstAuthentication/schemas.js +0 -18
- package/dist/plugins/findUniqueAuthentication/index.d.ts +0 -21
- package/dist/plugins/findUniqueAuthentication/index.d.ts.map +0 -1
- package/dist/plugins/findUniqueAuthentication/index.js +0 -39
- package/dist/plugins/findUniqueAuthentication/index.test.d.ts +0 -2
- package/dist/plugins/findUniqueAuthentication/index.test.d.ts.map +0 -1
- package/dist/plugins/findUniqueAuthentication/index.test.js +0 -159
- package/dist/plugins/findUniqueAuthentication/schemas.d.ts +0 -20
- package/dist/plugins/findUniqueAuthentication/schemas.d.ts.map +0 -1
- package/dist/plugins/findUniqueAuthentication/schemas.js +0 -18
- package/dist/plugins/getAction/index.d.ts +0 -25
- package/dist/plugins/getAction/index.d.ts.map +0 -1
- package/dist/plugins/getAction/index.js +0 -42
- package/dist/plugins/getAction/index.test.d.ts +0 -2
- package/dist/plugins/getAction/index.test.d.ts.map +0 -1
- package/dist/plugins/getAction/index.test.js +0 -211
- package/dist/plugins/getAction/schemas.d.ts +0 -30
- package/dist/plugins/getAction/schemas.d.ts.map +0 -1
- package/dist/plugins/getAction/schemas.js +0 -12
- package/dist/plugins/getApp/index.d.ts +0 -21
- package/dist/plugins/getApp/index.d.ts.map +0 -1
- package/dist/plugins/getApp/index.js +0 -44
- package/dist/plugins/getApp/index.test.d.ts +0 -2
- package/dist/plugins/getApp/index.test.d.ts.map +0 -1
- package/dist/plugins/getApp/index.test.js +0 -157
- package/dist/plugins/getApp/schemas.d.ts +0 -16
- package/dist/plugins/getApp/schemas.d.ts.map +0 -1
- package/dist/plugins/getApp/schemas.js +0 -8
- package/dist/plugins/getAuthentication/index.d.ts +0 -21
- package/dist/plugins/getAuthentication/index.d.ts.map +0 -1
- package/dist/plugins/getAuthentication/index.js +0 -29
- package/dist/plugins/getAuthentication/index.test.d.ts +0 -2
- package/dist/plugins/getAuthentication/index.test.d.ts.map +0 -1
- package/dist/plugins/getAuthentication/index.test.js +0 -106
- package/dist/plugins/getAuthentication/schemas.d.ts +0 -7
- package/dist/plugins/getAuthentication/schemas.d.ts.map +0 -1
- package/dist/plugins/getAuthentication/schemas.js +0 -1
- package/dist/plugins/getInputFieldsSchema/index.d.ts +0 -23
- package/dist/plugins/getInputFieldsSchema/index.d.ts.map +0 -1
- package/dist/plugins/getInputFieldsSchema/index.js +0 -53
- package/dist/plugins/getInputFieldsSchema/index.test.d.ts +0 -2
- package/dist/plugins/getInputFieldsSchema/index.test.d.ts.map +0 -1
- package/dist/plugins/getInputFieldsSchema/index.test.js +0 -291
- package/dist/plugins/getInputFieldsSchema/schemas.d.ts +0 -28
- package/dist/plugins/getInputFieldsSchema/schemas.d.ts.map +0 -1
- package/dist/plugins/getInputFieldsSchema/schemas.js +0 -13
- package/dist/plugins/getProfile/index.d.ts +0 -25
- package/dist/plugins/getProfile/index.d.ts.map +0 -1
- package/dist/plugins/getProfile/index.js +0 -39
- package/dist/plugins/getProfile/schemas.d.ts +0 -13
- package/dist/plugins/getProfile/schemas.d.ts.map +0 -1
- package/dist/plugins/getProfile/schemas.js +0 -6
- package/dist/plugins/listActions/index.d.ts +0 -30
- package/dist/plugins/listActions/index.d.ts.map +0 -1
- package/dist/plugins/listActions/index.js +0 -75
- package/dist/plugins/listActions/index.test.d.ts +0 -2
- package/dist/plugins/listActions/index.test.d.ts.map +0 -1
- package/dist/plugins/listActions/index.test.js +0 -453
- package/dist/plugins/listActions/schemas.d.ts +0 -35
- package/dist/plugins/listActions/schemas.d.ts.map +0 -1
- package/dist/plugins/listActions/schemas.js +0 -22
- package/dist/plugins/listApps/index.d.ts +0 -19
- package/dist/plugins/listApps/index.d.ts.map +0 -1
- package/dist/plugins/listApps/index.js +0 -67
- package/dist/plugins/listApps/index.test.d.ts +0 -2
- package/dist/plugins/listApps/index.test.d.ts.map +0 -1
- package/dist/plugins/listApps/index.test.js +0 -121
- package/dist/plugins/listApps/schemas.d.ts +0 -47
- package/dist/plugins/listApps/schemas.d.ts.map +0 -1
- package/dist/plugins/listApps/schemas.js +0 -49
- package/dist/plugins/listAuthentications/index.d.ts +0 -24
- package/dist/plugins/listAuthentications/index.d.ts.map +0 -1
- package/dist/plugins/listAuthentications/index.js +0 -77
- package/dist/plugins/listAuthentications/index.test.d.ts +0 -2
- package/dist/plugins/listAuthentications/index.test.d.ts.map +0 -1
- package/dist/plugins/listAuthentications/index.test.js +0 -848
- package/dist/plugins/listAuthentications/schemas.d.ts +0 -30
- package/dist/plugins/listAuthentications/schemas.d.ts.map +0 -1
- package/dist/plugins/listAuthentications/schemas.js +0 -32
- package/dist/plugins/listInputFieldChoices/index.d.ts +0 -33
- package/dist/plugins/listInputFieldChoices/index.d.ts.map +0 -1
- package/dist/plugins/listInputFieldChoices/index.js +0 -115
- package/dist/plugins/listInputFieldChoices/index.test.d.ts +0 -2
- package/dist/plugins/listInputFieldChoices/index.test.d.ts.map +0 -1
- package/dist/plugins/listInputFieldChoices/index.test.js +0 -717
- package/dist/plugins/listInputFieldChoices/schemas.d.ts +0 -43
- package/dist/plugins/listInputFieldChoices/schemas.d.ts.map +0 -1
- package/dist/plugins/listInputFieldChoices/schemas.js +0 -65
- package/dist/plugins/listInputFields/index.d.ts +0 -34
- package/dist/plugins/listInputFields/index.d.ts.map +0 -1
- package/dist/plugins/listInputFields/index.js +0 -204
- package/dist/plugins/listInputFields/index.test.d.ts +0 -2
- package/dist/plugins/listInputFields/index.test.d.ts.map +0 -1
- package/dist/plugins/listInputFields/index.test.js +0 -359
- package/dist/plugins/listInputFields/schemas.d.ts +0 -35
- package/dist/plugins/listInputFields/schemas.d.ts.map +0 -1
- package/dist/plugins/listInputFields/schemas.js +0 -23
- package/dist/plugins/manifest/index.d.ts +0 -85
- package/dist/plugins/manifest/index.d.ts.map +0 -1
- package/dist/plugins/manifest/index.js +0 -376
- package/dist/plugins/manifest/index.test.d.ts +0 -2
- package/dist/plugins/manifest/index.test.d.ts.map +0 -1
- package/dist/plugins/manifest/index.test.js +0 -1139
- package/dist/plugins/manifest/schemas.d.ts +0 -57
- package/dist/plugins/manifest/schemas.d.ts.map +0 -1
- package/dist/plugins/manifest/schemas.js +0 -50
- package/dist/plugins/registry/index.d.ts +0 -21
- package/dist/plugins/registry/index.d.ts.map +0 -1
- package/dist/plugins/registry/index.js +0 -117
- package/dist/plugins/request/index.d.ts +0 -21
- package/dist/plugins/request/index.d.ts.map +0 -1
- package/dist/plugins/request/index.js +0 -76
- package/dist/plugins/request/index.test.d.ts +0 -2
- package/dist/plugins/request/index.test.d.ts.map +0 -1
- package/dist/plugins/request/index.test.js +0 -337
- package/dist/plugins/request/schemas.d.ts +0 -54
- package/dist/plugins/request/schemas.d.ts.map +0 -1
- package/dist/plugins/request/schemas.js +0 -41
- package/dist/plugins/runAction/index.d.ts +0 -33
- package/dist/plugins/runAction/index.d.ts.map +0 -1
- package/dist/plugins/runAction/index.js +0 -108
- package/dist/plugins/runAction/index.test.d.ts +0 -2
- package/dist/plugins/runAction/index.test.d.ts.map +0 -1
- package/dist/plugins/runAction/index.test.js +0 -333
- package/dist/plugins/runAction/schemas.d.ts +0 -34
- package/dist/plugins/runAction/schemas.d.ts.map +0 -1
- package/dist/plugins/runAction/schemas.js +0 -23
- package/dist/resolvers/actionKey.d.ts +0 -15
- package/dist/resolvers/actionKey.d.ts.map +0 -1
- package/dist/resolvers/actionKey.js +0 -19
- package/dist/resolvers/actionType.d.ts +0 -10
- package/dist/resolvers/actionType.d.ts.map +0 -1
- package/dist/resolvers/actionType.js +0 -21
- package/dist/resolvers/appKey.d.ts +0 -3
- package/dist/resolvers/appKey.d.ts.map +0 -1
- package/dist/resolvers/appKey.js +0 -5
- package/dist/resolvers/authenticationId.d.ts +0 -9
- package/dist/resolvers/authenticationId.d.ts.map +0 -1
- package/dist/resolvers/authenticationId.js +0 -42
- package/dist/resolvers/index.d.ts +0 -8
- package/dist/resolvers/index.d.ts.map +0 -1
- package/dist/resolvers/index.js +0 -8
- package/dist/resolvers/inputFieldKey.d.ts +0 -11
- package/dist/resolvers/inputFieldKey.d.ts.map +0 -1
- package/dist/resolvers/inputFieldKey.js +0 -47
- package/dist/resolvers/inputs.d.ts +0 -17
- package/dist/resolvers/inputs.d.ts.map +0 -1
- package/dist/resolvers/inputs.js +0 -50
- package/dist/schemas/Action.d.ts +0 -24
- package/dist/schemas/Action.d.ts.map +0 -1
- package/dist/schemas/Action.js +0 -40
- package/dist/schemas/App.d.ts +0 -57
- package/dist/schemas/App.d.ts.map +0 -1
- package/dist/schemas/App.js +0 -26
- package/dist/schemas/Auth.d.ts +0 -55
- package/dist/schemas/Auth.d.ts.map +0 -1
- package/dist/schemas/Auth.js +0 -33
- package/dist/schemas/Field.d.ts +0 -61
- package/dist/schemas/Field.d.ts.map +0 -1
- package/dist/schemas/Field.js +0 -116
- package/dist/schemas/Run.d.ts +0 -3
- package/dist/schemas/Run.d.ts.map +0 -1
- package/dist/schemas/Run.js +0 -31
- package/dist/schemas/UserProfile.d.ts +0 -13
- package/dist/schemas/UserProfile.d.ts.map +0 -1
- package/dist/schemas/UserProfile.js +0 -32
- package/dist/sdk.d.ts +0 -146
- package/dist/sdk.d.ts.map +0 -1
- package/dist/sdk.js +0 -112
- package/dist/sdk.test.d.ts +0 -2
- package/dist/sdk.test.d.ts.map +0 -1
- package/dist/sdk.test.js +0 -258
- package/dist/services/implementations.d.ts +0 -63
- package/dist/services/implementations.d.ts.map +0 -1
- package/dist/services/implementations.js +0 -80
- package/dist/types/domain.d.ts +0 -52
- package/dist/types/domain.d.ts.map +0 -1
- package/dist/types/domain.js +0 -1
- package/dist/types/domain.test.d.ts +0 -2
- package/dist/types/domain.test.d.ts.map +0 -1
- package/dist/types/domain.test.js +0 -39
- package/dist/types/errors.d.ts +0 -143
- package/dist/types/errors.d.ts.map +0 -1
- package/dist/types/errors.js +0 -187
- package/dist/types/events.d.ts +0 -38
- package/dist/types/events.d.ts.map +0 -1
- package/dist/types/events.js +0 -7
- package/dist/types/functions.d.ts +0 -27
- package/dist/types/functions.d.ts.map +0 -1
- package/dist/types/functions.js +0 -1
- package/dist/types/plugin.d.ts +0 -75
- package/dist/types/plugin.d.ts.map +0 -1
- package/dist/types/plugin.js +0 -9
- package/dist/types/properties.d.ts +0 -33
- package/dist/types/properties.d.ts.map +0 -1
- package/dist/types/properties.js +0 -52
- package/dist/types/sdk.d.ts +0 -69
- package/dist/types/sdk.d.ts.map +0 -1
- package/dist/types/sdk.js +0 -4
- package/dist/types/telemetry-events.d.ts +0 -105
- package/dist/types/telemetry-events.d.ts.map +0 -1
- package/dist/types/telemetry-events.js +0 -8
- package/dist/utils/array-utils.d.ts +0 -31
- package/dist/utils/array-utils.d.ts.map +0 -1
- package/dist/utils/array-utils.js +0 -36
- package/dist/utils/array-utils.test.d.ts +0 -2
- package/dist/utils/array-utils.test.d.ts.map +0 -1
- package/dist/utils/array-utils.test.js +0 -107
- package/dist/utils/batch-utils.d.ts +0 -72
- package/dist/utils/batch-utils.d.ts.map +0 -1
- package/dist/utils/batch-utils.js +0 -162
- package/dist/utils/batch-utils.test.d.ts +0 -2
- package/dist/utils/batch-utils.test.d.ts.map +0 -1
- package/dist/utils/batch-utils.test.js +0 -476
- package/dist/utils/domain-utils.d.ts +0 -66
- package/dist/utils/domain-utils.d.ts.map +0 -1
- package/dist/utils/domain-utils.js +0 -164
- package/dist/utils/domain-utils.test.d.ts +0 -2
- package/dist/utils/domain-utils.test.d.ts.map +0 -1
- package/dist/utils/domain-utils.test.js +0 -346
- package/dist/utils/file-utils.d.ts +0 -4
- package/dist/utils/file-utils.d.ts.map +0 -1
- package/dist/utils/file-utils.js +0 -74
- package/dist/utils/file-utils.test.d.ts +0 -2
- package/dist/utils/file-utils.test.d.ts.map +0 -1
- package/dist/utils/file-utils.test.js +0 -51
- package/dist/utils/function-utils.d.ts +0 -73
- package/dist/utils/function-utils.d.ts.map +0 -1
- package/dist/utils/function-utils.js +0 -245
- package/dist/utils/function-utils.test.d.ts +0 -2
- package/dist/utils/function-utils.test.d.ts.map +0 -1
- package/dist/utils/function-utils.test.js +0 -110
- package/dist/utils/id-utils.d.ts +0 -13
- package/dist/utils/id-utils.d.ts.map +0 -1
- package/dist/utils/id-utils.js +0 -22
- package/dist/utils/id-utils.test.d.ts +0 -2
- package/dist/utils/id-utils.test.d.ts.map +0 -1
- package/dist/utils/id-utils.test.js +0 -22
- package/dist/utils/pagination-utils.d.ts +0 -37
- package/dist/utils/pagination-utils.d.ts.map +0 -1
- package/dist/utils/pagination-utils.js +0 -165
- package/dist/utils/pagination-utils.test.d.ts +0 -17
- package/dist/utils/pagination-utils.test.d.ts.map +0 -1
- package/dist/utils/pagination-utils.test.js +0 -461
- package/dist/utils/retry-utils.d.ts +0 -45
- package/dist/utils/retry-utils.d.ts.map +0 -1
- package/dist/utils/retry-utils.js +0 -51
- package/dist/utils/retry-utils.test.d.ts +0 -2
- package/dist/utils/retry-utils.test.d.ts.map +0 -1
- package/dist/utils/retry-utils.test.js +0 -90
- package/dist/utils/schema-utils.d.ts +0 -69
- package/dist/utils/schema-utils.d.ts.map +0 -1
- package/dist/utils/schema-utils.js +0 -72
- package/dist/utils/string-utils.d.ts +0 -40
- package/dist/utils/string-utils.d.ts.map +0 -1
- package/dist/utils/string-utils.js +0 -69
- package/dist/utils/string-utils.test.d.ts +0 -2
- package/dist/utils/string-utils.test.d.ts.map +0 -1
- package/dist/utils/string-utils.test.js +0 -59
- package/dist/utils/telemetry-utils.d.ts +0 -44
- package/dist/utils/telemetry-utils.d.ts.map +0 -1
- package/dist/utils/telemetry-utils.js +0 -55
- package/dist/utils/telemetry-utils.test.d.ts +0 -2
- package/dist/utils/telemetry-utils.test.d.ts.map +0 -1
- package/dist/utils/telemetry-utils.test.js +0 -94
- package/dist/utils/url-utils.d.ts +0 -19
- package/dist/utils/url-utils.d.ts.map +0 -1
- package/dist/utils/url-utils.js +0 -62
- package/dist/utils/url-utils.test.d.ts +0 -2
- package/dist/utils/url-utils.test.d.ts.map +0 -1
- package/dist/utils/url-utils.test.js +0 -103
- package/dist/utils/validation.d.ts +0 -4
- package/dist/utils/validation.d.ts.map +0 -1
- package/dist/utils/validation.js +0 -30
- package/dist/utils/validation.test.d.ts +0 -2
- package/dist/utils/validation.test.d.ts.map +0 -1
- package/dist/utils/validation.test.js +0 -44
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import type { PaginatedSdkFunction } from "../../types/functions";
|
|
3
|
-
import type { ZapierConfigurationError, ZapierApiError, ZapierAuthenticationError, ZapierAppNotFoundError, ZapierValidationError, ZapierUnknownError } from "../../types/errors";
|
|
4
|
-
export declare const InputFieldChoiceItemSchema: z.ZodObject<{
|
|
5
|
-
key: z.ZodOptional<z.ZodString>;
|
|
6
|
-
label: z.ZodOptional<z.ZodString>;
|
|
7
|
-
sample: z.ZodOptional<z.ZodString>;
|
|
8
|
-
value: z.ZodOptional<z.ZodString>;
|
|
9
|
-
}, z.core.$strip>;
|
|
10
|
-
export type InputFieldChoiceItem = z.infer<typeof InputFieldChoiceItemSchema>;
|
|
11
|
-
export declare const ListInputFieldChoicesSchema: z.ZodObject<{
|
|
12
|
-
appKey: z.ZodString & {
|
|
13
|
-
_def: z.core.$ZodStringDef & import("../..").PositionalMetadata;
|
|
14
|
-
};
|
|
15
|
-
actionType: z.ZodEnum<{
|
|
16
|
-
search: "search";
|
|
17
|
-
filter: "filter";
|
|
18
|
-
read: "read";
|
|
19
|
-
read_bulk: "read_bulk";
|
|
20
|
-
run: "run";
|
|
21
|
-
search_and_write: "search_and_write";
|
|
22
|
-
search_or_write: "search_or_write";
|
|
23
|
-
write: "write";
|
|
24
|
-
}>;
|
|
25
|
-
actionKey: z.ZodString;
|
|
26
|
-
inputFieldKey: z.ZodString;
|
|
27
|
-
authenticationId: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
28
|
-
inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
29
|
-
page: z.ZodOptional<z.ZodNumber>;
|
|
30
|
-
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
31
|
-
maxItems: z.ZodOptional<z.ZodNumber>;
|
|
32
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
33
|
-
}, z.core.$strip>;
|
|
34
|
-
export type ListInputFieldChoicesOptions = z.infer<typeof ListInputFieldChoicesSchema>;
|
|
35
|
-
export type ListInputFieldChoicesError = ZapierConfigurationError | ZapierApiError | ZapierAuthenticationError | ZapierAppNotFoundError | ZapierValidationError | ZapierUnknownError;
|
|
36
|
-
export interface ListInputFieldChoicesPage {
|
|
37
|
-
data: InputFieldChoiceItem[];
|
|
38
|
-
nextCursor?: string;
|
|
39
|
-
}
|
|
40
|
-
export interface ListInputFieldChoicesSdkFunction {
|
|
41
|
-
listInputFieldChoices: PaginatedSdkFunction<ListInputFieldChoicesOptions, InputFieldChoiceItem>;
|
|
42
|
-
}
|
|
43
|
-
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/plugins/listInputFieldChoices/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,KAAK,EACV,wBAAwB,EACxB,cAAc,EACd,yBAAyB,EACzB,sBAAsB,EACtB,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAM5B,eAAO,MAAM,0BAA0B;;;;;iBA0BrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAM9E,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;iBAsCmC,CAAC;AAG5E,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,2BAA2B,CACnC,CAAC;AAGF,MAAM,MAAM,0BAA0B,GAClC,wBAAwB,GACxB,cAAc,GACd,yBAAyB,GACzB,sBAAsB,GACtB,qBAAqB,GACrB,kBAAkB,CAAC;AAGvB,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,oBAAoB,EAAE,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAGD,MAAM,WAAW,gCAAgC;IAC/C,qBAAqB,EAAE,oBAAoB,CACzC,4BAA4B,EAC5B,oBAAoB,CACrB,CAAC;CACH"}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { AuthenticationIdPropertySchema, AppKeyPropertySchema, ActionTypePropertySchema, ActionKeyPropertySchema, InputsPropertySchema, } from "../../types/properties";
|
|
3
|
-
import { withFormatter } from "../../utils/schema-utils";
|
|
4
|
-
import { NeedChoicesSchema } from "../../api/schemas";
|
|
5
|
-
// ============================================================================
|
|
6
|
-
// Input Field Choice Item Schema
|
|
7
|
-
// ============================================================================
|
|
8
|
-
export const InputFieldChoiceItemSchema = withFormatter(NeedChoicesSchema, {
|
|
9
|
-
format: (item) => {
|
|
10
|
-
const title = item.label || item.key || "Choice";
|
|
11
|
-
const details = [];
|
|
12
|
-
// Show key as detail if different from label
|
|
13
|
-
if (item.label && item.key && item.label !== item.key) {
|
|
14
|
-
details.push({ text: `Key: ${item.key}`, style: "dim" });
|
|
15
|
-
}
|
|
16
|
-
if (item.sample && item.sample !== item.key) {
|
|
17
|
-
details.push({ text: `Sample: ${item.sample}`, style: "dim" });
|
|
18
|
-
}
|
|
19
|
-
if (item.value && item.value !== item.key) {
|
|
20
|
-
details.push({ text: `Value: ${item.value}`, style: "normal" });
|
|
21
|
-
}
|
|
22
|
-
return {
|
|
23
|
-
title,
|
|
24
|
-
key: item.key,
|
|
25
|
-
details,
|
|
26
|
-
};
|
|
27
|
-
},
|
|
28
|
-
});
|
|
29
|
-
// ============================================================================
|
|
30
|
-
// Plugin Schema Definition
|
|
31
|
-
// ============================================================================
|
|
32
|
-
export const ListInputFieldChoicesSchema = z
|
|
33
|
-
.object({
|
|
34
|
-
// Required action identification
|
|
35
|
-
appKey: AppKeyPropertySchema,
|
|
36
|
-
actionType: ActionTypePropertySchema,
|
|
37
|
-
actionKey: ActionKeyPropertySchema,
|
|
38
|
-
// Input field specification
|
|
39
|
-
inputFieldKey: z
|
|
40
|
-
.string()
|
|
41
|
-
.min(1)
|
|
42
|
-
.describe("Input field key to get choices for."),
|
|
43
|
-
// Common parameters
|
|
44
|
-
authenticationId: AuthenticationIdPropertySchema.nullable().optional(),
|
|
45
|
-
inputs: InputsPropertySchema.optional().describe("Current input values that may affect available choices"),
|
|
46
|
-
page: z
|
|
47
|
-
.number()
|
|
48
|
-
.int()
|
|
49
|
-
.min(0)
|
|
50
|
-
.optional()
|
|
51
|
-
.describe("Page number for paginated results"),
|
|
52
|
-
// Pagination options (SDK-level)
|
|
53
|
-
pageSize: z
|
|
54
|
-
.number()
|
|
55
|
-
.min(1)
|
|
56
|
-
.optional()
|
|
57
|
-
.describe("Number of choices per page"),
|
|
58
|
-
maxItems: z
|
|
59
|
-
.number()
|
|
60
|
-
.min(1)
|
|
61
|
-
.optional()
|
|
62
|
-
.describe("Maximum total items to return across all pages"),
|
|
63
|
-
cursor: z.string().optional().describe("Cursor to start from"),
|
|
64
|
-
})
|
|
65
|
-
.describe("Get the available choices for a dynamic dropdown input field");
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type { Plugin, GetSdkType } from "../../types/plugin";
|
|
2
|
-
import type { ApiClient } from "../../api";
|
|
3
|
-
import type { InputFieldItem, InfoFieldItem, FieldsetItem, RootFieldItem } from "../../types/domain";
|
|
4
|
-
import { ListInputFieldsSchema, type ListInputFieldsOptions } from "./schemas";
|
|
5
|
-
import type { GetAppPluginProvides } from "../getApp";
|
|
6
|
-
import type { GetActionPluginProvides } from "../getAction";
|
|
7
|
-
import type { GetVersionedImplementationId } from "../manifest/schemas";
|
|
8
|
-
import type { EventEmissionContext } from "../eventEmission";
|
|
9
|
-
export interface ListInputFieldsPluginProvides {
|
|
10
|
-
listInputFields: (options?: ListInputFieldsOptions) => Promise<{
|
|
11
|
-
data: RootFieldItem[];
|
|
12
|
-
nextCursor?: string;
|
|
13
|
-
}> & AsyncIterable<{
|
|
14
|
-
data: RootFieldItem[];
|
|
15
|
-
nextCursor?: string;
|
|
16
|
-
}> & {
|
|
17
|
-
items(): AsyncIterable<InputFieldItem | InfoFieldItem | FieldsetItem>;
|
|
18
|
-
};
|
|
19
|
-
context: {
|
|
20
|
-
meta: {
|
|
21
|
-
listInputFields: {
|
|
22
|
-
inputSchema: typeof ListInputFieldsSchema;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
export declare const listInputFieldsPlugin: Plugin<GetSdkType<GetAppPluginProvides & GetActionPluginProvides>, // requires getApp and getAction in SDK
|
|
28
|
-
// requires getApp and getAction in SDK
|
|
29
|
-
{
|
|
30
|
-
api: ApiClient;
|
|
31
|
-
getVersionedImplementationId: GetVersionedImplementationId;
|
|
32
|
-
} & EventEmissionContext, // requires api, getVersionedImplementationId, and eventEmission in context
|
|
33
|
-
ListInputFieldsPluginProvides>;
|
|
34
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/listInputFields/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAE3C,OAAO,KAAK,EACV,cAAc,EACd,aAAa,EACb,YAAY,EACZ,aAAa,EACd,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,qBAAqB,EACrB,KAAK,sBAAsB,EAE5B,MAAM,WAAW,CAAC;AAGnB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AACtD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAC;AAYxE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AA0J7D,MAAM,WAAW,6BAA6B;IAC5C,eAAe,EAAE,CAAC,OAAO,CAAC,EAAE,sBAAsB,KAAK,OAAO,CAAC;QAC7D,IAAI,EAAE,aAAa,EAAE,CAAC;QACtB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC,GACA,aAAa,CAAC;QAAE,IAAI,EAAE,aAAa,EAAE,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,GAAG;QAC9D,KAAK,IAAI,aAAa,CAAC,cAAc,GAAG,aAAa,GAAG,YAAY,CAAC,CAAC;KACvE,CAAC;IACJ,OAAO,EAAE;QACP,IAAI,EAAE;YACJ,eAAe,EAAE;gBACf,WAAW,EAAE,OAAO,qBAAqB,CAAC;aAC3C,CAAC;SACH,CAAC;KACH,CAAC;CACH;AAED,eAAO,MAAM,qBAAqB,EAAE,MAAM,CACxC,UAAU,CAAC,oBAAoB,GAAG,uBAAuB,CAAC,EAAE,uCAAuC;AACnG,AAD4D,uCAAuC;AACnG;IACE,GAAG,EAAE,SAAS,CAAC;IACf,4BAA4B,EAAE,4BAA4B,CAAC;CAC5D,GAAG,oBAAoB,EAAE,2EAA2E;AACrG,6BAA6B,CAsF9B,CAAC"}
|
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
import { ListInputFieldsSchema, } from "./schemas";
|
|
2
|
-
import { ZapierConfigurationError } from "../../types/errors";
|
|
3
|
-
import { createPaginatedFunction } from "../../utils/function-utils";
|
|
4
|
-
import { appKeyResolver, actionTypeResolver, actionKeyResolver, authenticationIdResolver, inputsAllOptionalResolver, } from "../../resolvers";
|
|
5
|
-
import { RootFieldItemSchema } from "../../schemas/Field";
|
|
6
|
-
import { toTitleCase, stripPageSuffix } from "../../utils/string-utils";
|
|
7
|
-
import { fetchImplementationNeeds } from "../../services/implementations";
|
|
8
|
-
import { createTelemetryCallback } from "../../utils/telemetry-utils";
|
|
9
|
-
// Enums for input field transformation
|
|
10
|
-
var InputFieldType;
|
|
11
|
-
(function (InputFieldType) {
|
|
12
|
-
InputFieldType["STRING"] = "STRING";
|
|
13
|
-
InputFieldType["NUMBER"] = "NUMBER";
|
|
14
|
-
InputFieldType["INTEGER"] = "INTEGER";
|
|
15
|
-
InputFieldType["BOOLEAN"] = "BOOLEAN";
|
|
16
|
-
InputFieldType["OBJECT"] = "OBJECT";
|
|
17
|
-
InputFieldType["ARRAY"] = "ARRAY";
|
|
18
|
-
})(InputFieldType || (InputFieldType = {}));
|
|
19
|
-
var InputFieldFormat;
|
|
20
|
-
(function (InputFieldFormat) {
|
|
21
|
-
InputFieldFormat["DATETIME"] = "DATETIME";
|
|
22
|
-
InputFieldFormat["SELECT"] = "SELECT";
|
|
23
|
-
InputFieldFormat["MULTILINE"] = "MULTILINE";
|
|
24
|
-
InputFieldFormat["FILE"] = "FILE";
|
|
25
|
-
InputFieldFormat["PASSWORD"] = "PASSWORD";
|
|
26
|
-
InputFieldFormat["CODE"] = "CODE";
|
|
27
|
-
})(InputFieldFormat || (InputFieldFormat = {}));
|
|
28
|
-
var ItemsType;
|
|
29
|
-
(function (ItemsType) {
|
|
30
|
-
ItemsType["STRING"] = "STRING";
|
|
31
|
-
ItemsType["NUMBER"] = "NUMBER";
|
|
32
|
-
ItemsType["INTEGER"] = "INTEGER";
|
|
33
|
-
ItemsType["BOOLEAN"] = "BOOLEAN";
|
|
34
|
-
ItemsType["OBJECT"] = "OBJECT";
|
|
35
|
-
})(ItemsType || (ItemsType = {}));
|
|
36
|
-
// Transformation helper functions
|
|
37
|
-
function getInputFieldTypeFromNeed(need) {
|
|
38
|
-
if (need.list) {
|
|
39
|
-
return InputFieldType.ARRAY;
|
|
40
|
-
}
|
|
41
|
-
const typeMap = {
|
|
42
|
-
string: InputFieldType.STRING,
|
|
43
|
-
decimal: InputFieldType.NUMBER,
|
|
44
|
-
integer: InputFieldType.INTEGER,
|
|
45
|
-
boolean: InputFieldType.BOOLEAN,
|
|
46
|
-
dict: InputFieldType.OBJECT,
|
|
47
|
-
};
|
|
48
|
-
return typeMap[need.type || ""] || InputFieldType.STRING;
|
|
49
|
-
}
|
|
50
|
-
function getInputFieldFormatFromNeed(need) {
|
|
51
|
-
if (need.prefill || need.choices) {
|
|
52
|
-
return InputFieldFormat.SELECT;
|
|
53
|
-
}
|
|
54
|
-
const formatMap = {
|
|
55
|
-
text: InputFieldFormat.MULTILINE,
|
|
56
|
-
datetime: InputFieldFormat.DATETIME,
|
|
57
|
-
file: InputFieldFormat.FILE,
|
|
58
|
-
password: InputFieldFormat.PASSWORD,
|
|
59
|
-
code: InputFieldFormat.CODE,
|
|
60
|
-
};
|
|
61
|
-
return formatMap[need.type || ""];
|
|
62
|
-
}
|
|
63
|
-
function getItemsTypeFromNeed(need) {
|
|
64
|
-
if (!need.list) {
|
|
65
|
-
return undefined;
|
|
66
|
-
}
|
|
67
|
-
const typeMap = {
|
|
68
|
-
string: ItemsType.STRING,
|
|
69
|
-
decimal: ItemsType.NUMBER,
|
|
70
|
-
integer: ItemsType.INTEGER,
|
|
71
|
-
boolean: ItemsType.BOOLEAN,
|
|
72
|
-
dict: ItemsType.OBJECT,
|
|
73
|
-
};
|
|
74
|
-
return typeMap[need.type || ""] || ItemsType.STRING;
|
|
75
|
-
}
|
|
76
|
-
// Transform Need to InputFieldItem
|
|
77
|
-
function transformNeedToInputFieldItem(need) {
|
|
78
|
-
const itemsType = getItemsTypeFromNeed(need);
|
|
79
|
-
return {
|
|
80
|
-
type: "input_field",
|
|
81
|
-
key: need.key,
|
|
82
|
-
default_value: need.default || "",
|
|
83
|
-
depends_on: need.depends_on || [],
|
|
84
|
-
description: need.help_text || "",
|
|
85
|
-
invalidates_input_fields: need.alters_custom_fields || false,
|
|
86
|
-
is_required: need.required || false,
|
|
87
|
-
placeholder: need.placeholder || "",
|
|
88
|
-
title: need.label || "",
|
|
89
|
-
value_type: getInputFieldTypeFromNeed(need),
|
|
90
|
-
format: getInputFieldFormatFromNeed(need),
|
|
91
|
-
items: itemsType ? { type: itemsType } : undefined,
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
// Transform Need to InfoFieldItem (for copy fields)
|
|
95
|
-
function transformNeedToInfoFieldItem(need) {
|
|
96
|
-
return {
|
|
97
|
-
type: "info_field",
|
|
98
|
-
key: need.key,
|
|
99
|
-
description: need.help_text || "",
|
|
100
|
-
title: need.label,
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
// Transform needs to fields (similar to partnerapi compute_root_fieldset_from_needs)
|
|
104
|
-
function transformNeedsToFields(needs) {
|
|
105
|
-
const rootFields = [];
|
|
106
|
-
const fieldsetMap = new Map();
|
|
107
|
-
for (const need of needs) {
|
|
108
|
-
if (need.computed) {
|
|
109
|
-
// Computed needs (i.e zap_id for CodeAPI steps) are not shown by the
|
|
110
|
-
// editor, hide them here too.
|
|
111
|
-
continue;
|
|
112
|
-
}
|
|
113
|
-
// If parent_key is set, we need to ensure that a corresponding
|
|
114
|
-
// fieldset exists, since we'll be adding this need to that fieldset
|
|
115
|
-
if (need.parent_key) {
|
|
116
|
-
let fieldset = fieldsetMap.get(need.parent_key);
|
|
117
|
-
if (!fieldset) {
|
|
118
|
-
fieldset = {
|
|
119
|
-
type: "fieldset",
|
|
120
|
-
key: need.parent_key,
|
|
121
|
-
title: toTitleCase(need.parent_key),
|
|
122
|
-
fields: [],
|
|
123
|
-
};
|
|
124
|
-
fieldsetMap.set(need.parent_key, fieldset);
|
|
125
|
-
rootFields.push(fieldset);
|
|
126
|
-
}
|
|
127
|
-
// Add field to fieldset
|
|
128
|
-
if (need.type === "copy" && need.help_text) {
|
|
129
|
-
fieldset.fields.push(transformNeedToInfoFieldItem(need));
|
|
130
|
-
}
|
|
131
|
-
else {
|
|
132
|
-
fieldset.fields.push(transformNeedToInputFieldItem(need));
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
else {
|
|
136
|
-
// Add field to root
|
|
137
|
-
if (need.type === "copy" && need.help_text) {
|
|
138
|
-
rootFields.push(transformNeedToInfoFieldItem(need));
|
|
139
|
-
}
|
|
140
|
-
else {
|
|
141
|
-
rootFields.push(transformNeedToInputFieldItem(need));
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
return rootFields;
|
|
146
|
-
}
|
|
147
|
-
export const listInputFieldsPlugin = ({ sdk, context }) => {
|
|
148
|
-
async function listInputFieldsPage(options) {
|
|
149
|
-
// Note: This function ignores pageSize and cursor since it's not actually paginated internally
|
|
150
|
-
const { api, getVersionedImplementationId } = context;
|
|
151
|
-
// Extract parameters
|
|
152
|
-
const { appKey, actionKey, actionType, authenticationId = null, inputs, } = options;
|
|
153
|
-
// Use the manifest plugin
|
|
154
|
-
const selectedApi = await getVersionedImplementationId(appKey);
|
|
155
|
-
if (!selectedApi) {
|
|
156
|
-
throw new ZapierConfigurationError("No current_implementation_id found for app", { configType: "current_implementation_id" });
|
|
157
|
-
}
|
|
158
|
-
// Need to call getAction here because it resolves both action.key AND action.id
|
|
159
|
-
// eg: `create_report` or `core:39487493`
|
|
160
|
-
const { data: action } = await sdk.getAction({
|
|
161
|
-
appKey,
|
|
162
|
-
actionType,
|
|
163
|
-
actionKey,
|
|
164
|
-
});
|
|
165
|
-
// Use service layer to fetch implementation needs
|
|
166
|
-
const needsData = await fetchImplementationNeeds({
|
|
167
|
-
api,
|
|
168
|
-
selectedApi,
|
|
169
|
-
action: action.key,
|
|
170
|
-
actionType,
|
|
171
|
-
authenticationId,
|
|
172
|
-
inputs,
|
|
173
|
-
});
|
|
174
|
-
// Transform Need objects to Root Fieldset with proper nesting
|
|
175
|
-
const rootFieldset = transformNeedsToFields(needsData.needs || []);
|
|
176
|
-
return {
|
|
177
|
-
data: rootFieldset,
|
|
178
|
-
nextCursor: undefined, // No pagination needed since we return all input fields
|
|
179
|
-
};
|
|
180
|
-
}
|
|
181
|
-
const methodName = stripPageSuffix(listInputFieldsPage.name);
|
|
182
|
-
const listInputFieldsDefinition = createPaginatedFunction(listInputFieldsPage, ListInputFieldsSchema, createTelemetryCallback(context.eventEmission.emitMethodCalled, methodName), methodName);
|
|
183
|
-
return {
|
|
184
|
-
listInputFields: listInputFieldsDefinition,
|
|
185
|
-
context: {
|
|
186
|
-
meta: {
|
|
187
|
-
listInputFields: {
|
|
188
|
-
categories: ["action"],
|
|
189
|
-
type: "list",
|
|
190
|
-
itemType: "RootFieldItem",
|
|
191
|
-
inputSchema: ListInputFieldsSchema,
|
|
192
|
-
outputSchema: RootFieldItemSchema,
|
|
193
|
-
resolvers: {
|
|
194
|
-
appKey: appKeyResolver,
|
|
195
|
-
actionType: actionTypeResolver,
|
|
196
|
-
actionKey: actionKeyResolver,
|
|
197
|
-
authenticationId: authenticationIdResolver,
|
|
198
|
-
inputs: inputsAllOptionalResolver,
|
|
199
|
-
},
|
|
200
|
-
},
|
|
201
|
-
},
|
|
202
|
-
},
|
|
203
|
-
};
|
|
204
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.test.d.ts","sourceRoot":"","sources":["../../../src/plugins/listInputFields/index.test.ts"],"names":[],"mappings":""}
|