@connect-plus-online/ogabai-integrations 0.0.62 → 0.0.64
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.cjs.js +9 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.mts +16 -8
- package/dist/index.d.ts +16 -8
- package/dist/index.esm.js +9 -5
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -171,7 +171,7 @@ interface UserAccount {
|
|
|
171
171
|
userRoleId: string;
|
|
172
172
|
userRole?: UserRole;
|
|
173
173
|
store?: Store;
|
|
174
|
-
user?: User
|
|
174
|
+
user?: Partial<User>;
|
|
175
175
|
}
|
|
176
176
|
interface UserTypeCounts {
|
|
177
177
|
total: number;
|
|
@@ -884,21 +884,27 @@ type DeleteEntityResponse<K extends EntityKey> = DeleteEntityRequest<K>;
|
|
|
884
884
|
|
|
885
885
|
declare const createUserAccountService: (client: GraphQLClient) => {
|
|
886
886
|
createUserAccount: (input: CreateEntityRequest<UserAccount, "userAccount">, fetchFields?: {
|
|
887
|
-
root?: "userAccount"[] | undefined;
|
|
887
|
+
root?: ("userAccount" | "pin")[] | undefined;
|
|
888
888
|
nestedFields?: (Record<"userAccount", UserAccountFields> & {
|
|
889
889
|
userAccount: UserAccountFields;
|
|
890
890
|
store: StoreFields;
|
|
891
|
+
address: AddressFields;
|
|
891
892
|
privileges: PrivilegeFields;
|
|
892
893
|
user: UserFields;
|
|
894
|
+
userRole: UserRoleFields;
|
|
893
895
|
}) | undefined;
|
|
894
|
-
} | undefined, option?: RequestOption) => Promise<EntityResponse<UserAccount, "userAccount">
|
|
896
|
+
} | undefined, option?: RequestOption) => Promise<(EntityResponse<UserAccount, "userAccount"> & {
|
|
897
|
+
pin?: string;
|
|
898
|
+
}) | undefined>;
|
|
895
899
|
updateUserAccount: (input: UpdateEntityRequest<UserAccount, "userAccount">, fetchFields?: {
|
|
896
900
|
root?: "userAccount"[] | undefined;
|
|
897
901
|
nestedFields?: (Record<"userAccount", UserAccountFields> & {
|
|
898
902
|
userAccount: UserAccountFields;
|
|
899
903
|
store: StoreFields;
|
|
904
|
+
address: AddressFields;
|
|
900
905
|
privileges: PrivilegeFields;
|
|
901
906
|
user: UserFields;
|
|
907
|
+
userRole: UserRoleFields;
|
|
902
908
|
}) | undefined;
|
|
903
909
|
} | undefined, option?: RequestOption) => Promise<EntityResponse<UserAccount, "userAccount"> | undefined>;
|
|
904
910
|
getUserAccount: (input: GetEntityRequest<UserAccount, "userAccount">, fetchFields?: {
|
|
@@ -906,8 +912,10 @@ declare const createUserAccountService: (client: GraphQLClient) => {
|
|
|
906
912
|
nestedFields?: (Record<"userAccount", UserAccountFields> & {
|
|
907
913
|
userAccount: UserAccountFields;
|
|
908
914
|
store: StoreFields;
|
|
915
|
+
address: AddressFields;
|
|
909
916
|
privileges: PrivilegeFields;
|
|
910
917
|
user: UserFields;
|
|
918
|
+
userRole: UserRoleFields;
|
|
911
919
|
}) | undefined;
|
|
912
920
|
} | undefined, option?: RequestOption) => Promise<EntityResponse<UserAccount, "userAccount"> | undefined>;
|
|
913
921
|
removeUserAccount: (input: DeleteEntityRequest<"userAccount">, fetchFields?: {
|
|
@@ -917,10 +925,12 @@ declare const createUserAccountService: (client: GraphQLClient) => {
|
|
|
917
925
|
getUserAccounts: (input: ListEntityRequest<UserAccount, "userAccount">, fetchFields?: {
|
|
918
926
|
root?: ("total" | "userAccounts")[] | undefined;
|
|
919
927
|
nestedFields?: (Record<"userAccounts", UserAccountFields> & {
|
|
920
|
-
privileges: PrivilegeFields;
|
|
921
928
|
userAccount: UserAccountFields;
|
|
922
929
|
store: StoreFields;
|
|
930
|
+
address: AddressFields;
|
|
931
|
+
privileges: PrivilegeFields;
|
|
923
932
|
user: UserFields;
|
|
933
|
+
userRole: UserRoleFields;
|
|
924
934
|
}) | undefined;
|
|
925
935
|
} | undefined, option?: RequestOption) => Promise<ListEntityResponse<UserAccount, "userAccount"> | undefined>;
|
|
926
936
|
};
|
|
@@ -960,11 +970,9 @@ type UserRoleService = ReturnType<typeof createUserRoleService>;
|
|
|
960
970
|
|
|
961
971
|
declare const createApplicationFeatureService: (client: GraphQLClient) => {
|
|
962
972
|
createApplicationFeature: (input: CreateEntityRequest<ApplicationFeature, "applicationFeature">, fetchFields?: {
|
|
963
|
-
root?:
|
|
973
|
+
root?: "applicationFeature"[] | undefined;
|
|
964
974
|
nestedFields?: Record<"applicationFeature", ApplicationFeatureFields> | undefined;
|
|
965
|
-
} | undefined, option?: RequestOption) => Promise<
|
|
966
|
-
pin?: string;
|
|
967
|
-
}) | undefined>;
|
|
975
|
+
} | undefined, option?: RequestOption) => Promise<EntityResponse<ApplicationFeature, "applicationFeature"> | undefined>;
|
|
968
976
|
updateApplicationFeature: (input: UpdateEntityRequest<ApplicationFeature, "applicationFeature">, fetchFields?: {
|
|
969
977
|
root?: "applicationFeature"[] | undefined;
|
|
970
978
|
nestedFields?: Record<"applicationFeature", ApplicationFeatureFields> | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -171,7 +171,7 @@ interface UserAccount {
|
|
|
171
171
|
userRoleId: string;
|
|
172
172
|
userRole?: UserRole;
|
|
173
173
|
store?: Store;
|
|
174
|
-
user?: User
|
|
174
|
+
user?: Partial<User>;
|
|
175
175
|
}
|
|
176
176
|
interface UserTypeCounts {
|
|
177
177
|
total: number;
|
|
@@ -884,21 +884,27 @@ type DeleteEntityResponse<K extends EntityKey> = DeleteEntityRequest<K>;
|
|
|
884
884
|
|
|
885
885
|
declare const createUserAccountService: (client: GraphQLClient) => {
|
|
886
886
|
createUserAccount: (input: CreateEntityRequest<UserAccount, "userAccount">, fetchFields?: {
|
|
887
|
-
root?: "userAccount"[] | undefined;
|
|
887
|
+
root?: ("userAccount" | "pin")[] | undefined;
|
|
888
888
|
nestedFields?: (Record<"userAccount", UserAccountFields> & {
|
|
889
889
|
userAccount: UserAccountFields;
|
|
890
890
|
store: StoreFields;
|
|
891
|
+
address: AddressFields;
|
|
891
892
|
privileges: PrivilegeFields;
|
|
892
893
|
user: UserFields;
|
|
894
|
+
userRole: UserRoleFields;
|
|
893
895
|
}) | undefined;
|
|
894
|
-
} | undefined, option?: RequestOption) => Promise<EntityResponse<UserAccount, "userAccount">
|
|
896
|
+
} | undefined, option?: RequestOption) => Promise<(EntityResponse<UserAccount, "userAccount"> & {
|
|
897
|
+
pin?: string;
|
|
898
|
+
}) | undefined>;
|
|
895
899
|
updateUserAccount: (input: UpdateEntityRequest<UserAccount, "userAccount">, fetchFields?: {
|
|
896
900
|
root?: "userAccount"[] | undefined;
|
|
897
901
|
nestedFields?: (Record<"userAccount", UserAccountFields> & {
|
|
898
902
|
userAccount: UserAccountFields;
|
|
899
903
|
store: StoreFields;
|
|
904
|
+
address: AddressFields;
|
|
900
905
|
privileges: PrivilegeFields;
|
|
901
906
|
user: UserFields;
|
|
907
|
+
userRole: UserRoleFields;
|
|
902
908
|
}) | undefined;
|
|
903
909
|
} | undefined, option?: RequestOption) => Promise<EntityResponse<UserAccount, "userAccount"> | undefined>;
|
|
904
910
|
getUserAccount: (input: GetEntityRequest<UserAccount, "userAccount">, fetchFields?: {
|
|
@@ -906,8 +912,10 @@ declare const createUserAccountService: (client: GraphQLClient) => {
|
|
|
906
912
|
nestedFields?: (Record<"userAccount", UserAccountFields> & {
|
|
907
913
|
userAccount: UserAccountFields;
|
|
908
914
|
store: StoreFields;
|
|
915
|
+
address: AddressFields;
|
|
909
916
|
privileges: PrivilegeFields;
|
|
910
917
|
user: UserFields;
|
|
918
|
+
userRole: UserRoleFields;
|
|
911
919
|
}) | undefined;
|
|
912
920
|
} | undefined, option?: RequestOption) => Promise<EntityResponse<UserAccount, "userAccount"> | undefined>;
|
|
913
921
|
removeUserAccount: (input: DeleteEntityRequest<"userAccount">, fetchFields?: {
|
|
@@ -917,10 +925,12 @@ declare const createUserAccountService: (client: GraphQLClient) => {
|
|
|
917
925
|
getUserAccounts: (input: ListEntityRequest<UserAccount, "userAccount">, fetchFields?: {
|
|
918
926
|
root?: ("total" | "userAccounts")[] | undefined;
|
|
919
927
|
nestedFields?: (Record<"userAccounts", UserAccountFields> & {
|
|
920
|
-
privileges: PrivilegeFields;
|
|
921
928
|
userAccount: UserAccountFields;
|
|
922
929
|
store: StoreFields;
|
|
930
|
+
address: AddressFields;
|
|
931
|
+
privileges: PrivilegeFields;
|
|
923
932
|
user: UserFields;
|
|
933
|
+
userRole: UserRoleFields;
|
|
924
934
|
}) | undefined;
|
|
925
935
|
} | undefined, option?: RequestOption) => Promise<ListEntityResponse<UserAccount, "userAccount"> | undefined>;
|
|
926
936
|
};
|
|
@@ -960,11 +970,9 @@ type UserRoleService = ReturnType<typeof createUserRoleService>;
|
|
|
960
970
|
|
|
961
971
|
declare const createApplicationFeatureService: (client: GraphQLClient) => {
|
|
962
972
|
createApplicationFeature: (input: CreateEntityRequest<ApplicationFeature, "applicationFeature">, fetchFields?: {
|
|
963
|
-
root?:
|
|
973
|
+
root?: "applicationFeature"[] | undefined;
|
|
964
974
|
nestedFields?: Record<"applicationFeature", ApplicationFeatureFields> | undefined;
|
|
965
|
-
} | undefined, option?: RequestOption) => Promise<
|
|
966
|
-
pin?: string;
|
|
967
|
-
}) | undefined>;
|
|
975
|
+
} | undefined, option?: RequestOption) => Promise<EntityResponse<ApplicationFeature, "applicationFeature"> | undefined>;
|
|
968
976
|
updateApplicationFeature: (input: UpdateEntityRequest<ApplicationFeature, "applicationFeature">, fetchFields?: {
|
|
969
977
|
root?: "applicationFeature"[] | undefined;
|
|
970
978
|
nestedFields?: Record<"applicationFeature", ApplicationFeatureFields> | undefined;
|
package/dist/index.esm.js
CHANGED
|
@@ -929,18 +929,22 @@ var userAccountIntegration = createStandardEntityIntegration({
|
|
|
929
929
|
nested: {
|
|
930
930
|
userAccount: userAccountQuery,
|
|
931
931
|
store: storeQuery,
|
|
932
|
+
address: addressQuery,
|
|
932
933
|
privileges: privilegeQuery,
|
|
933
|
-
user: userQuery
|
|
934
|
+
user: userQuery,
|
|
935
|
+
userRole: userRoleQuery
|
|
934
936
|
}
|
|
935
937
|
});
|
|
936
938
|
var userAccountListIntegration = createListIntegration({
|
|
937
939
|
key: "userAccounts",
|
|
938
940
|
fields: userAccountQuery,
|
|
939
941
|
nested: {
|
|
940
|
-
privileges: privilegeQuery,
|
|
941
942
|
userAccount: userAccountQuery,
|
|
942
943
|
store: storeQuery,
|
|
943
|
-
|
|
944
|
+
address: addressQuery,
|
|
945
|
+
privileges: privilegeQuery,
|
|
946
|
+
user: userQuery,
|
|
947
|
+
userRole: userRoleQuery
|
|
944
948
|
}
|
|
945
949
|
});
|
|
946
950
|
var userAccountDeleteIntegration = createDeleteIntegration(ENTITY);
|
|
@@ -1021,7 +1025,7 @@ var createUserAccountService = (client) => ({
|
|
|
1021
1025
|
"createUserAccount",
|
|
1022
1026
|
{
|
|
1023
1027
|
schema: buildSchema(userAccountSchema.create),
|
|
1024
|
-
defaultRootFields: userAccountIntegration.create.responseFields,
|
|
1028
|
+
defaultRootFields: [...userAccountIntegration.create.responseFields, "pin"],
|
|
1025
1029
|
defaultNestedFields: userAccountIntegration.create.nestedFields
|
|
1026
1030
|
}
|
|
1027
1031
|
),
|
|
@@ -1217,7 +1221,7 @@ var createApplicationFeatureService = (client) => ({
|
|
|
1217
1221
|
"createApplicationFeature",
|
|
1218
1222
|
{
|
|
1219
1223
|
schema: buildSchema(applicationFeatureSchema.create),
|
|
1220
|
-
defaultRootFields:
|
|
1224
|
+
defaultRootFields: applicationFeatureIntegration.create.responseFields,
|
|
1221
1225
|
defaultNestedFields: applicationFeatureIntegration.create.nestedFields
|
|
1222
1226
|
}
|
|
1223
1227
|
),
|