@opexa/portal-sdk 0.0.48 → 0.0.50
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 +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +196 -194
- package/dist/index.mjs.map +1 -1
- package/dist/sdk/types.d.ts +24 -2
- package/dist/services/types.d.ts +64 -0
- package/package.json +1 -1
package/dist/sdk/types.d.ts
CHANGED
|
@@ -441,9 +441,16 @@ export interface Game {
|
|
|
441
441
|
images: string[];
|
|
442
442
|
provider: GameProvider;
|
|
443
443
|
}
|
|
444
|
-
export interface Game__Next
|
|
445
|
-
|
|
444
|
+
export interface Game__Next {
|
|
445
|
+
id: string;
|
|
446
|
+
name: string;
|
|
447
|
+
type: GameType;
|
|
448
|
+
images: string[];
|
|
449
|
+
provider: GameProvider;
|
|
450
|
+
reference: string;
|
|
451
|
+
/** @deprecated use `reference` instead */
|
|
446
452
|
externalId: string;
|
|
453
|
+
tags: GameTag[];
|
|
447
454
|
}
|
|
448
455
|
export interface GamesInput extends Internal.GamesQueryVariables {
|
|
449
456
|
}
|
|
@@ -1039,10 +1046,25 @@ export interface ActivityRecord {
|
|
|
1039
1046
|
export interface ActivityRecordsInput extends Internal.ActivityRecordsQueryVariables {
|
|
1040
1047
|
}
|
|
1041
1048
|
export type ActivityRecordsReturn = OperationResult<never, PaginatedQueryResult<'activityRecords', ActivityRecord>>;
|
|
1049
|
+
export type FieldType = UnionAlias<Internal.FieldType>;
|
|
1050
|
+
export interface TextField extends Internal.TextField {
|
|
1051
|
+
}
|
|
1052
|
+
export interface ImageField extends Internal.ImageField {
|
|
1053
|
+
}
|
|
1054
|
+
export interface SelectField extends Internal.SelectField {
|
|
1055
|
+
}
|
|
1056
|
+
export interface MultiSelectField extends Internal.MultiSelectField {
|
|
1057
|
+
}
|
|
1058
|
+
export interface ToggleField extends Internal.ToggleField {
|
|
1059
|
+
}
|
|
1060
|
+
export interface CompoundField extends Internal.CompoundField {
|
|
1061
|
+
}
|
|
1062
|
+
export type Field = TextField | ImageField | SelectField | MultiSelectField | ToggleField | CompoundField;
|
|
1042
1063
|
export interface Site {
|
|
1043
1064
|
id: string;
|
|
1044
1065
|
name: string;
|
|
1045
1066
|
logo?: string;
|
|
1067
|
+
fields: Field[];
|
|
1046
1068
|
}
|
|
1047
1069
|
export type SiteReturn = OperationResult<never, Site>;
|
|
1048
1070
|
export {};
|
package/dist/services/types.d.ts
CHANGED
|
@@ -133,6 +133,8 @@ export interface Game__Next extends Game {
|
|
|
133
133
|
cursor: string;
|
|
134
134
|
status: GameStatus;
|
|
135
135
|
platform: string;
|
|
136
|
+
reference: string;
|
|
137
|
+
/** @deprecated use `reference` instead */
|
|
136
138
|
externalId: string;
|
|
137
139
|
dateTimeCreated: DateString;
|
|
138
140
|
dateTimeLastUpdated: DateString;
|
|
@@ -919,10 +921,72 @@ export interface MayaSessionQueryVariables {
|
|
|
919
921
|
export interface ValidateMayaSessionMutation {
|
|
920
922
|
validateMayaSession: boolean;
|
|
921
923
|
}
|
|
924
|
+
export interface TextField {
|
|
925
|
+
id: string;
|
|
926
|
+
type: 'text';
|
|
927
|
+
label: string;
|
|
928
|
+
value?: string;
|
|
929
|
+
default?: string;
|
|
930
|
+
required?: true;
|
|
931
|
+
pattern?: 'url' | 'email' | (string & {});
|
|
932
|
+
minLength?: number;
|
|
933
|
+
maxLength?: number;
|
|
934
|
+
placeholder?: string;
|
|
935
|
+
}
|
|
936
|
+
export interface ImageField {
|
|
937
|
+
id: string;
|
|
938
|
+
type: 'image';
|
|
939
|
+
label: string;
|
|
940
|
+
default?: string;
|
|
941
|
+
required?: boolean;
|
|
942
|
+
width?: number;
|
|
943
|
+
height?: number;
|
|
944
|
+
minWidth?: number;
|
|
945
|
+
minHeight?: number;
|
|
946
|
+
maxWidth?: number;
|
|
947
|
+
maxHeight?: number;
|
|
948
|
+
}
|
|
949
|
+
export interface SelectField {
|
|
950
|
+
id: string;
|
|
951
|
+
type: 'select';
|
|
952
|
+
label: string;
|
|
953
|
+
options: string[];
|
|
954
|
+
default?: string;
|
|
955
|
+
required?: boolean;
|
|
956
|
+
}
|
|
957
|
+
export interface MultiSelectField {
|
|
958
|
+
id: string;
|
|
959
|
+
type: 'multi_select';
|
|
960
|
+
label: string;
|
|
961
|
+
options: string[];
|
|
962
|
+
default?: string[];
|
|
963
|
+
required?: boolean;
|
|
964
|
+
}
|
|
965
|
+
export interface ToggleField {
|
|
966
|
+
id: string;
|
|
967
|
+
type: 'toggle';
|
|
968
|
+
label: string;
|
|
969
|
+
default?: boolean;
|
|
970
|
+
}
|
|
971
|
+
export interface CompoundField {
|
|
972
|
+
id: string;
|
|
973
|
+
type: 'compound';
|
|
974
|
+
fields: (TextField | ImageField | SelectField | MultiSelectField | ToggleField | CompoundField)[];
|
|
975
|
+
default?: any;
|
|
976
|
+
multiple?: boolean;
|
|
977
|
+
}
|
|
978
|
+
export type Field = TextField | ImageField | SelectField | MultiSelectField | ToggleField | CompoundField;
|
|
979
|
+
export type FieldType = Field['type'];
|
|
980
|
+
export interface SiteConfig {
|
|
981
|
+
name: string;
|
|
982
|
+
logo: string;
|
|
983
|
+
fields: Field[];
|
|
984
|
+
}
|
|
922
985
|
export interface Site {
|
|
923
986
|
id: string;
|
|
924
987
|
name: string;
|
|
925
988
|
logo?: string | null;
|
|
989
|
+
config: SiteConfig;
|
|
926
990
|
}
|
|
927
991
|
export interface SiteQuery {
|
|
928
992
|
data: Site;
|