@basis-theory/basis-theory-js 1.60.0 → 1.62.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.
|
@@ -10,5 +10,5 @@ export declare const BasisTheoryApplications: {
|
|
|
10
10
|
regenerateKey(id: string, options?: RequestOptions | undefined): Promise<Application>;
|
|
11
11
|
readonly client: import("axios").AxiosInstance;
|
|
12
12
|
};
|
|
13
|
-
} & (new (...args: any[]) => import("../types/sdk/services/shared").Create<Application, Pick<Application, "type" | "expiresAt" | "name" | "permissions" | "rules"
|
|
13
|
+
} & (new (...args: any[]) => import("../types/sdk/services/shared").Create<Application, Pick<Application, "type" | "expiresAt" | "name" | "permissions" | "rules">>) & (new (...args: any[]) => import("../types/sdk/services/shared").Retrieve<Application>) & (new (...args: any[]) => import("../types/sdk/services/shared").Update<Application, Pick<Application, "name" | "permissions" | "rules">>) & (new (...args: any[]) => import("../types/sdk/services/shared").Delete) & (new (...args: any[]) => import("../types/sdk/services/shared").List<Application, ListApplicationsQuery>);
|
|
14
14
|
export declare type BasisTheoryApplications = InstanceType<typeof BasisTheoryApplications>;
|
package/package.json
CHANGED
|
@@ -7,6 +7,8 @@ declare type ReadyEvent = BaseEvent<'ready'>;
|
|
|
7
7
|
declare type ChangeEvent = BaseEvent<'change'> & {
|
|
8
8
|
empty: boolean;
|
|
9
9
|
complete: boolean;
|
|
10
|
+
valid?: boolean;
|
|
11
|
+
maskSatisfied?: boolean;
|
|
10
12
|
errors?: FieldError[];
|
|
11
13
|
};
|
|
12
14
|
declare type CardChangeEvent = ChangeEvent & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Auditable } from './shared';
|
|
2
|
-
declare const APPLICATION_TYPES: readonly ["private", "public", "management"
|
|
2
|
+
declare const APPLICATION_TYPES: readonly ["private", "public", "management"];
|
|
3
3
|
declare const TRANSFORM_TYPES: readonly ["mask", "redact", "reveal"];
|
|
4
4
|
declare type ApplicationType = typeof APPLICATION_TYPES[number];
|
|
5
5
|
declare type TransformType = typeof TRANSFORM_TYPES[number];
|
|
@@ -11,7 +11,6 @@ interface Application extends Auditable {
|
|
|
11
11
|
type: ApplicationType;
|
|
12
12
|
permissions?: string[];
|
|
13
13
|
rules?: AccessRule[];
|
|
14
|
-
canCreateExpiringApplications?: boolean;
|
|
15
14
|
expiresAt?: string;
|
|
16
15
|
}
|
|
17
16
|
interface AccessRule {
|
|
@@ -27,7 +26,7 @@ declare type Condition = {
|
|
|
27
26
|
operator: string;
|
|
28
27
|
value: string;
|
|
29
28
|
};
|
|
30
|
-
declare type CreateApplication = Pick<Application, 'name' | 'type' | 'permissions' | 'rules' | '
|
|
31
|
-
declare type UpdateApplication = Pick<Application, 'name' | 'permissions' | 'rules'
|
|
29
|
+
declare type CreateApplication = Pick<Application, 'name' | 'type' | 'permissions' | 'rules' | 'expiresAt'>;
|
|
30
|
+
declare type UpdateApplication = Pick<Application, 'name' | 'permissions' | 'rules'>;
|
|
32
31
|
export type { ApplicationType, Application, CreateApplication, TransformType, UpdateApplication, };
|
|
33
32
|
export { APPLICATION_TYPES, TRANSFORM_TYPES, AccessRule };
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.TRANSFORM_TYPES = exports.APPLICATION_TYPES = void 0;
|
|
7
|
-
const APPLICATION_TYPES = ['private', 'public', 'management'
|
|
7
|
+
const APPLICATION_TYPES = ['private', 'public', 'management'];
|
|
8
8
|
exports.APPLICATION_TYPES = APPLICATION_TYPES;
|
|
9
9
|
const TRANSFORM_TYPES = ['mask', 'redact', 'reveal'];
|
|
10
10
|
exports.TRANSFORM_TYPES = TRANSFORM_TYPES;
|