@opexa/portal-sdk 0.0.65 → 0.0.68

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/dist/sdk/sdk.d.ts CHANGED
@@ -229,7 +229,7 @@ export declare class Sdk {
229
229
  game(id: string): Promise<{
230
230
  ok: false;
231
231
  data?: never;
232
- error: import('../utils/types').OperationError<import('../utils/types').HttpError | "UnknownError"> | import('../utils/types').OperationError<never>;
232
+ error: import('../utils/types').OperationError<import('../utils/types').HttpError | "UnknownError">;
233
233
  } | {
234
234
  ok: true;
235
235
  data: import('./types').Game__Next | null;
@@ -140,6 +140,7 @@ export interface VerificationDetails {
140
140
  id: string;
141
141
  status: VerificationDetailsStatus;
142
142
  address: string;
143
+ permanentAddress: string;
143
144
  sourceOfIncome: string;
144
145
  natureOfWork: string;
145
146
  nationality: string;
@@ -378,6 +379,12 @@ export interface SubmitVerificationDetailsInput {
378
379
  * - _max_: `120`
379
380
  */
380
381
  address: string;
382
+ /**
383
+ * @validation
384
+ * - _min_: `2`
385
+ * - _max_: `120`
386
+ */
387
+ permanentAddress: string;
381
388
  /**
382
389
  * @validation
383
390
  * - _min_: `2`
@@ -11,7 +11,7 @@ export declare class GameService {
11
11
  gamesByName(variables?: GamesByNameQueryVariables): Promise<{
12
12
  ok: false;
13
13
  data?: never;
14
- error: import('../utils/types').OperationError<import('../utils/types').HttpError | "UnknownError"> | import('../utils/types').OperationError<never>;
14
+ error: import('../utils/types').OperationError<import('../utils/types').HttpError | "UnknownError">;
15
15
  } | {
16
16
  ok: true;
17
17
  data: Game[];
@@ -657,6 +657,7 @@ export interface MemberVerification {
657
657
  id: string;
658
658
  status: MemberVerificationStatus;
659
659
  address: string;
660
+ permanentAddress: string;
660
661
  sourceOfIncome: string;
661
662
  natureOfWork: string;
662
663
  nationality: string;
@@ -786,6 +787,7 @@ export interface CreateMemberVerificationMutationVariables {
786
787
  idFrontImage: string;
787
788
  selfieImage: string;
788
789
  address: string;
790
+ permanentAddress: string;
789
791
  sourceOfIncome: string;
790
792
  natureOfWork: string;
791
793
  nationality: string;
@@ -805,6 +807,7 @@ export interface UpdateMemberVerificationMutationVariables {
805
807
  idFrontImage?: string;
806
808
  selfieImage?: string;
807
809
  address?: string;
810
+ permanentAddress?: string;
808
811
  sourceOfIncome?: string;
809
812
  natureOfWork?: string;
810
813
  nationality?: string;
@@ -30,7 +30,7 @@ export declare class WalletService {
30
30
  gamesByName(variables?: GamesByNameQueryVariables): Promise<{
31
31
  ok: false;
32
32
  data?: never;
33
- error: import('../utils/types').OperationError<import('../utils/types').HttpError | "UnknownError"> | import('../utils/types').OperationError<never>;
33
+ error: import('../utils/types').OperationError<import('../utils/types').HttpError | "UnknownError">;
34
34
  } | {
35
35
  ok: true;
36
36
  data: Game[];
@@ -8,10 +8,10 @@ export type OperationError<T extends string = string> = {
8
8
  name: T;
9
9
  message: string;
10
10
  };
11
- export type OperationResult<Error extends string = string, Data = never> = [Data] extends [never] ? {
11
+ export type OperationResult<Error extends string = never, Data = never> = [Data] extends [never] ? {
12
12
  ok: false;
13
13
  data?: never;
14
- error: OperationError<Error> | OperationError<HttpError | 'UnknownError'>;
14
+ error: [Error] extends [never] ? OperationError<HttpError | 'UnknownError'> : OperationError<Error> | OperationError<HttpError | 'UnknownError'>;
15
15
  } | {
16
16
  ok: true;
17
17
  data?: never;
@@ -19,7 +19,7 @@ export type OperationResult<Error extends string = string, Data = never> = [Data
19
19
  } : {
20
20
  ok: false;
21
21
  data?: never;
22
- error: OperationError<Error> | OperationError<HttpError | 'UnknownError'>;
22
+ error: [Error] extends [never] ? OperationError<HttpError | 'UnknownError'> : OperationError<Error> | OperationError<HttpError | 'UnknownError'>;
23
23
  } | {
24
24
  ok: true;
25
25
  data: Data;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@opexa/portal-sdk",
3
3
  "type": "module",
4
- "version": "0.0.65",
4
+ "version": "0.0.68",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "typings": "dist/index.d.ts",