@opexa/portal-sdk 0.0.136 → 0.0.138
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/README.md +1624 -1624
- package/dist/index.js +95 -89
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +656 -614
- package/dist/index.mjs.map +1 -1
- package/dist/sdk/types.d.ts +2 -2
- package/dist/services/types.d.ts +2 -2
- package/dist/utils/graphql-client.d.ts +2 -2
- package/package.json +81 -81
package/dist/sdk/types.d.ts
CHANGED
|
@@ -838,9 +838,9 @@ export interface Message {
|
|
|
838
838
|
/** @deprecated use `Message.icon` */
|
|
839
839
|
logo: MessageIcon;
|
|
840
840
|
image?: string;
|
|
841
|
-
title
|
|
841
|
+
title?: string;
|
|
842
842
|
popup: boolean;
|
|
843
|
-
content
|
|
843
|
+
content?: string;
|
|
844
844
|
actions: MessageAction[];
|
|
845
845
|
markedAsRead: boolean;
|
|
846
846
|
dateTimeCreated: Date;
|
package/dist/services/types.d.ts
CHANGED
|
@@ -715,7 +715,7 @@ export interface PointsWalletTransactionsQueryVariables {
|
|
|
715
715
|
export interface PointsWalletTransactionsQuery {
|
|
716
716
|
member: PaginatedQuery<'pointsWalletTransactions', PointsWalletTransaction>;
|
|
717
717
|
}
|
|
718
|
-
export type MemberAccountStatus = 'ACTIVE' | 'DISABLED' | 'BLACKLISTED';
|
|
718
|
+
export type MemberAccountStatus = 'ACTIVE' | 'DISABLED' | 'BLACKLISTED' | 'SUSPENDED';
|
|
719
719
|
export type MemberAccountVerificationStatus = 'UNVERIFIED' | 'PENDING' | 'VERIFIED';
|
|
720
720
|
export type MemberVerificationStatus = 'PENDING' | 'APPROVED' | 'REJECTED' | 'VERIFIED' | 'UNVERIFIED';
|
|
721
721
|
export interface MemberAccount {
|
|
@@ -757,7 +757,7 @@ export interface MemberVerificationQuery {
|
|
|
757
757
|
verification?: MemberVerification | null;
|
|
758
758
|
};
|
|
759
759
|
}
|
|
760
|
-
export type RegisterMemberAccountError = 'AccountNameNotAvailableError' | 'InvalidPlatformError' | 'InvalidReCAPTCHAResponseError' | 'InvalidSMSVerificationCodeError' | 'MinimumAgeRequirementError' | 'MobileNumberNotAvailableError';
|
|
760
|
+
export type RegisterMemberAccountError = 'AccountNameNotAvailableError' | 'InvalidPlatformError' | 'InvalidReCAPTCHAResponseError' | 'InvalidSMSVerificationCodeError' | 'MinimumAgeRequirementError' | 'MobileNumberNotAvailableError' | 'ReCAPTCHAVerificationFailedError';
|
|
761
761
|
export interface RegisterMemberAccountMutation {
|
|
762
762
|
registerMemberAccount?: null | {
|
|
763
763
|
__typename: RegisterMemberAccountError;
|
|
@@ -18,9 +18,9 @@ export declare class GraphQLClient {
|
|
|
18
18
|
private options;
|
|
19
19
|
private middlewares;
|
|
20
20
|
constructor(url: string, config?: GraphQLClientConfig);
|
|
21
|
-
request<Data, Variables extends GenericObject = GenericObject>(query: string, variables?: Variables): Promise<OperationResult<never, Data>>;
|
|
21
|
+
request<Data, Variables extends GenericObject = GenericObject>(query: string, variables?: Variables, options?: GraphQLClientFetchOptions): Promise<OperationResult<never, Data>>;
|
|
22
22
|
/** Single file upload */
|
|
23
|
-
upload<Data, Variables extends GenericObject = GenericObject>(query: string, variables: Variables): Promise<OperationResult<never, Data>>;
|
|
23
|
+
upload<Data, Variables extends GenericObject = GenericObject>(query: string, variables: Variables, options?: GraphQLClientFetchOptions): Promise<OperationResult<never, Data>>;
|
|
24
24
|
private exec;
|
|
25
25
|
private runMiddlewares;
|
|
26
26
|
private createUploadBody;
|
package/package.json
CHANGED
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@opexa/portal-sdk",
|
|
3
|
-
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"module": "dist/index.mjs",
|
|
7
|
-
"typings": "dist/index.d.ts",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"require": "./dist/index.js",
|
|
11
|
-
"import": "./dist/index.mjs",
|
|
12
|
-
"types": "./dist/index.d.ts"
|
|
13
|
-
},
|
|
14
|
-
"./package.json": "./package.json"
|
|
15
|
-
},
|
|
16
|
-
"publishConfig": {
|
|
17
|
-
"access": "public"
|
|
18
|
-
},
|
|
19
|
-
"files": [
|
|
20
|
-
"dist"
|
|
21
|
-
],
|
|
22
|
-
"scripts": {
|
|
23
|
-
"dev": "vite",
|
|
24
|
-
"build": "tsc --noEmit && vite build --mode library",
|
|
25
|
-
"test": "vitest",
|
|
26
|
-
"release": "release-it"
|
|
27
|
-
},
|
|
28
|
-
"dependencies": {
|
|
29
|
-
"@opexa/object-id": "0.1.6"
|
|
30
|
-
},
|
|
31
|
-
"devDependencies": {
|
|
32
|
-
"@ark-ui/react": "3.5.0",
|
|
33
|
-
"@faker-js/faker": "8.4.1",
|
|
34
|
-
"@fontsource/fira-code": "5.0.18",
|
|
35
|
-
"@fontsource/inter": "5.0.19",
|
|
36
|
-
"@hookform/resolvers": "3.9.0",
|
|
37
|
-
"@types/node": "20.14.11",
|
|
38
|
-
"@types/react": "18.3.3",
|
|
39
|
-
"@types/react-dom": "18.3.0",
|
|
40
|
-
"@untitled-theme/icons-react": "0.10.5",
|
|
41
|
-
"@vitejs/plugin-react-swc": "3.7.0",
|
|
42
|
-
"autoprefixer": "10.4.19",
|
|
43
|
-
"clsx": "2.1.1",
|
|
44
|
-
"date-fns": "3.6.0",
|
|
45
|
-
"graphql-config": "5.0.3",
|
|
46
|
-
"msw": "2.3.2",
|
|
47
|
-
"postcss": "8.4.39",
|
|
48
|
-
"react": "18.3.1",
|
|
49
|
-
"react-dom": "18.3.1",
|
|
50
|
-
"react-hook-form": "7.52.1",
|
|
51
|
-
"react-router-dom": "6.25.1",
|
|
52
|
-
"release-it": "17.6.0",
|
|
53
|
-
"shiki": "1.11.0",
|
|
54
|
-
"tailwind-variants": "0.2.1",
|
|
55
|
-
"tailwindcss": "3.4.6",
|
|
56
|
-
"typescript": "5.5.4",
|
|
57
|
-
"vite": "5.3.4",
|
|
58
|
-
"vite-plugin-dts": "3.9.1",
|
|
59
|
-
"vite-plugin-node-polyfills": "0.22.0",
|
|
60
|
-
"vite-tsconfig-paths": "4.3.2",
|
|
61
|
-
"vitest": "2.0.4",
|
|
62
|
-
"zod": "3.23.8"
|
|
63
|
-
},
|
|
64
|
-
"release-it": {
|
|
65
|
-
"git": {
|
|
66
|
-
"commitMessage": "chore: release ${npm.name} v${version}",
|
|
67
|
-
"tagName": "${npm.name}@${version}"
|
|
68
|
-
},
|
|
69
|
-
"github": {
|
|
70
|
-
"release": false
|
|
71
|
-
},
|
|
72
|
-
"hooks": {
|
|
73
|
-
"before:init": [
|
|
74
|
-
"pnpm test"
|
|
75
|
-
],
|
|
76
|
-
"after:bump": [
|
|
77
|
-
"pnpm build"
|
|
78
|
-
]
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@opexa/portal-sdk",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.0.138",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.mjs",
|
|
7
|
+
"typings": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"require": "./dist/index.js",
|
|
11
|
+
"import": "./dist/index.mjs",
|
|
12
|
+
"types": "./dist/index.d.ts"
|
|
13
|
+
},
|
|
14
|
+
"./package.json": "./package.json"
|
|
15
|
+
},
|
|
16
|
+
"publishConfig": {
|
|
17
|
+
"access": "public"
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"dist"
|
|
21
|
+
],
|
|
22
|
+
"scripts": {
|
|
23
|
+
"dev": "vite",
|
|
24
|
+
"build": "tsc --noEmit && vite build --mode library",
|
|
25
|
+
"test": "vitest",
|
|
26
|
+
"release": "release-it"
|
|
27
|
+
},
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@opexa/object-id": "0.1.6"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@ark-ui/react": "3.5.0",
|
|
33
|
+
"@faker-js/faker": "8.4.1",
|
|
34
|
+
"@fontsource/fira-code": "5.0.18",
|
|
35
|
+
"@fontsource/inter": "5.0.19",
|
|
36
|
+
"@hookform/resolvers": "3.9.0",
|
|
37
|
+
"@types/node": "20.14.11",
|
|
38
|
+
"@types/react": "18.3.3",
|
|
39
|
+
"@types/react-dom": "18.3.0",
|
|
40
|
+
"@untitled-theme/icons-react": "0.10.5",
|
|
41
|
+
"@vitejs/plugin-react-swc": "3.7.0",
|
|
42
|
+
"autoprefixer": "10.4.19",
|
|
43
|
+
"clsx": "2.1.1",
|
|
44
|
+
"date-fns": "3.6.0",
|
|
45
|
+
"graphql-config": "5.0.3",
|
|
46
|
+
"msw": "2.3.2",
|
|
47
|
+
"postcss": "8.4.39",
|
|
48
|
+
"react": "18.3.1",
|
|
49
|
+
"react-dom": "18.3.1",
|
|
50
|
+
"react-hook-form": "7.52.1",
|
|
51
|
+
"react-router-dom": "6.25.1",
|
|
52
|
+
"release-it": "17.6.0",
|
|
53
|
+
"shiki": "1.11.0",
|
|
54
|
+
"tailwind-variants": "0.2.1",
|
|
55
|
+
"tailwindcss": "3.4.6",
|
|
56
|
+
"typescript": "5.5.4",
|
|
57
|
+
"vite": "5.3.4",
|
|
58
|
+
"vite-plugin-dts": "3.9.1",
|
|
59
|
+
"vite-plugin-node-polyfills": "0.22.0",
|
|
60
|
+
"vite-tsconfig-paths": "4.3.2",
|
|
61
|
+
"vitest": "2.0.4",
|
|
62
|
+
"zod": "3.23.8"
|
|
63
|
+
},
|
|
64
|
+
"release-it": {
|
|
65
|
+
"git": {
|
|
66
|
+
"commitMessage": "chore: release ${npm.name} v${version}",
|
|
67
|
+
"tagName": "${npm.name}@${version}"
|
|
68
|
+
},
|
|
69
|
+
"github": {
|
|
70
|
+
"release": false
|
|
71
|
+
},
|
|
72
|
+
"hooks": {
|
|
73
|
+
"before:init": [
|
|
74
|
+
"pnpm test"
|
|
75
|
+
],
|
|
76
|
+
"after:bump": [
|
|
77
|
+
"pnpm build"
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|