@opexa/portal-sdk 0.0.49 → 0.0.51
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/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/dist/sdk/types.d.ts +18 -0
- package/dist/services/types.d.ts +65 -1
- package/package.json +1 -1
package/dist/sdk/types.d.ts
CHANGED
|
@@ -126,6 +126,9 @@ export interface Account {
|
|
|
126
126
|
mobileNumberVerificationRequired: boolean;
|
|
127
127
|
transactionPassword: boolean;
|
|
128
128
|
secretAnswerSubmitted: boolean;
|
|
129
|
+
/**
|
|
130
|
+
* @deprecated use `sdk.activityRecords` and pass `LOGIN` to `filter.type`
|
|
131
|
+
*/
|
|
129
132
|
dateTimeLastActive?: Date;
|
|
130
133
|
dateTimeCreated: Date;
|
|
131
134
|
dateTimeLastUpdated: Date;
|
|
@@ -1046,10 +1049,25 @@ export interface ActivityRecord {
|
|
|
1046
1049
|
export interface ActivityRecordsInput extends Internal.ActivityRecordsQueryVariables {
|
|
1047
1050
|
}
|
|
1048
1051
|
export type ActivityRecordsReturn = OperationResult<never, PaginatedQueryResult<'activityRecords', ActivityRecord>>;
|
|
1052
|
+
export type FieldType = UnionAlias<Internal.FieldType>;
|
|
1053
|
+
export interface TextField extends Internal.TextField {
|
|
1054
|
+
}
|
|
1055
|
+
export interface ImageField extends Internal.ImageField {
|
|
1056
|
+
}
|
|
1057
|
+
export interface SelectField extends Internal.SelectField {
|
|
1058
|
+
}
|
|
1059
|
+
export interface MultiSelectField extends Internal.MultiSelectField {
|
|
1060
|
+
}
|
|
1061
|
+
export interface ToggleField extends Internal.ToggleField {
|
|
1062
|
+
}
|
|
1063
|
+
export interface CompoundField extends Internal.CompoundField {
|
|
1064
|
+
}
|
|
1065
|
+
export type Field = TextField | ImageField | SelectField | MultiSelectField | ToggleField | CompoundField;
|
|
1049
1066
|
export interface Site {
|
|
1050
1067
|
id: string;
|
|
1051
1068
|
name: string;
|
|
1052
1069
|
logo?: string;
|
|
1070
|
+
fields: Field[];
|
|
1053
1071
|
}
|
|
1054
1072
|
export type SiteReturn = OperationResult<never, Site>;
|
|
1055
1073
|
export {};
|
package/dist/services/types.d.ts
CHANGED
|
@@ -115,7 +115,9 @@ export interface AnnouncementsQueryVariables {
|
|
|
115
115
|
};
|
|
116
116
|
}
|
|
117
117
|
export type GameType = 'SLOTS' | 'SPORTS' | 'FISHING' | 'BINGO' | 'LIVE' | 'GAMES' | 'TABLE' | 'SPECIALTY';
|
|
118
|
-
export type GameProvider = 'JILI' | 'PGSOFT' | 'FACHAI' | 'BTI' | 'DG' | 'PLAYTECH' | 'E2E' | 'EVOLUTION' | 'EVOLUTION_NETENT' | 'EVOLUTION_REDTIGER' | 'MEGABALL' | 'DARWIN' | 'RTG' | 'DRBINGO' | 'HOLLYWOODTV' | 'CQ9' | 'JDB' | 'HABANERO'
|
|
118
|
+
export type GameProvider = 'JILI' | 'PGSOFT' | 'FACHAI' | 'BTI' | 'DG' | 'PLAYTECH' | 'E2E' | 'EVOLUTION' | 'EVOLUTION_NETENT' | 'EVOLUTION_REDTIGER' | 'MEGABALL' | 'DARWIN' | 'RTG' | 'DRBINGO' | 'HOLLYWOODTV' | 'CQ9' | 'JDB' | 'HABANERO'
|
|
119
|
+
/** @deprecated */
|
|
120
|
+
| 'PRAGMATICPLAY' | 'SPINIX' | 'JOKER' | 'HACKSAW' | 'EVOLUTIONNETENT' | 'JDBGTF' | 'JDBSPRIBE' | 'MICROGAMING' | 'RELAXGAMING' | 'EVOPLAY' | 'BOOONGO' | 'BGAMING' | 'KINGMAKER' | 'KINGMIDAS' | 'YELLOWBAT';
|
|
119
121
|
export type GameStatus = 'ACTIVE' | 'INACTIVE';
|
|
120
122
|
/** @deprecated */
|
|
121
123
|
export interface Game {
|
|
@@ -921,10 +923,72 @@ export interface MayaSessionQueryVariables {
|
|
|
921
923
|
export interface ValidateMayaSessionMutation {
|
|
922
924
|
validateMayaSession: boolean;
|
|
923
925
|
}
|
|
926
|
+
export interface TextField {
|
|
927
|
+
id: string;
|
|
928
|
+
type: 'text';
|
|
929
|
+
label: string;
|
|
930
|
+
value?: string;
|
|
931
|
+
default?: string;
|
|
932
|
+
required?: true;
|
|
933
|
+
pattern?: 'url' | 'email' | (string & {});
|
|
934
|
+
minLength?: number;
|
|
935
|
+
maxLength?: number;
|
|
936
|
+
placeholder?: string;
|
|
937
|
+
}
|
|
938
|
+
export interface ImageField {
|
|
939
|
+
id: string;
|
|
940
|
+
type: 'image';
|
|
941
|
+
label: string;
|
|
942
|
+
default?: string;
|
|
943
|
+
required?: boolean;
|
|
944
|
+
width?: number;
|
|
945
|
+
height?: number;
|
|
946
|
+
minWidth?: number;
|
|
947
|
+
minHeight?: number;
|
|
948
|
+
maxWidth?: number;
|
|
949
|
+
maxHeight?: number;
|
|
950
|
+
}
|
|
951
|
+
export interface SelectField {
|
|
952
|
+
id: string;
|
|
953
|
+
type: 'select';
|
|
954
|
+
label: string;
|
|
955
|
+
options: string[];
|
|
956
|
+
default?: string;
|
|
957
|
+
required?: boolean;
|
|
958
|
+
}
|
|
959
|
+
export interface MultiSelectField {
|
|
960
|
+
id: string;
|
|
961
|
+
type: 'multi_select';
|
|
962
|
+
label: string;
|
|
963
|
+
options: string[];
|
|
964
|
+
default?: string[];
|
|
965
|
+
required?: boolean;
|
|
966
|
+
}
|
|
967
|
+
export interface ToggleField {
|
|
968
|
+
id: string;
|
|
969
|
+
type: 'toggle';
|
|
970
|
+
label: string;
|
|
971
|
+
default?: boolean;
|
|
972
|
+
}
|
|
973
|
+
export interface CompoundField {
|
|
974
|
+
id: string;
|
|
975
|
+
type: 'compound';
|
|
976
|
+
fields: (TextField | ImageField | SelectField | MultiSelectField | ToggleField | CompoundField)[];
|
|
977
|
+
default?: any;
|
|
978
|
+
multiple?: boolean;
|
|
979
|
+
}
|
|
980
|
+
export type Field = TextField | ImageField | SelectField | MultiSelectField | ToggleField | CompoundField;
|
|
981
|
+
export type FieldType = Field['type'];
|
|
982
|
+
export interface SiteConfig {
|
|
983
|
+
name: string;
|
|
984
|
+
logo: string;
|
|
985
|
+
fields: Field[];
|
|
986
|
+
}
|
|
924
987
|
export interface Site {
|
|
925
988
|
id: string;
|
|
926
989
|
name: string;
|
|
927
990
|
logo?: string | null;
|
|
991
|
+
config: SiteConfig;
|
|
928
992
|
}
|
|
929
993
|
export interface SiteQuery {
|
|
930
994
|
data: Site;
|