adaptic-backend 1.0.34 → 1.0.35
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/AIRecommendation.d.ts +7 -8
- package/AIRecommendation.js +15 -7
- package/Account.d.ts +7 -8
- package/Account.js +15 -7
- package/Alert.d.ts +7 -8
- package/Alert.js +15 -7
- package/AlpacaAccount.d.ts +7 -8
- package/AlpacaAccount.js +15 -7
- package/Asset.d.ts +7 -8
- package/Asset.js +15 -7
- package/Authenticator.d.ts +7 -8
- package/Authenticator.js +15 -7
- package/Customer.d.ts +7 -8
- package/Customer.js +15 -7
- package/EconomicEvent.d.ts +7 -8
- package/EconomicEvent.js +15 -7
- package/EnvironmentVariable.d.ts +7 -8
- package/EnvironmentVariable.js +15 -7
- package/Holding.d.ts +7 -8
- package/Holding.js +15 -7
- package/NewsArticle.d.ts +7 -8
- package/NewsArticle.js +15 -7
- package/NewsArticleAssetSentiment.d.ts +7 -8
- package/NewsArticleAssetSentiment.js +15 -7
- package/Order.d.ts +7 -8
- package/Order.js +15 -7
- package/PerformanceMetric.d.ts +7 -8
- package/PerformanceMetric.js +15 -7
- package/README.md +5 -8
- package/RiskAllocation.d.ts +7 -8
- package/RiskAllocation.js +15 -7
- package/Session.d.ts +7 -8
- package/Session.js +15 -7
- package/Trade.d.ts +7 -8
- package/Trade.js +15 -7
- package/TradeStep.d.ts +7 -8
- package/TradeStep.js +15 -7
- package/TradingAccount.d.ts +7 -8
- package/TradingAccount.js +15 -7
- package/User.d.ts +7 -8
- package/User.js +15 -7
- package/VerificationToken.d.ts +7 -8
- package/VerificationToken.js +15 -7
- package/client.d.ts +6 -0
- package/client.js +80 -0
- package/generated/typegraphql-prisma/enhance.d.ts.map +1 -1
- package/generated/typegraphql-prisma/enhance.js +5 -1
- package/generated/typegraphql-prisma/enhance.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/AlpacaAccountScalarWhereWithAggregatesInput.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/AlpacaAccountScalarWhereWithAggregatesInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/AlpacaAccountScalarWhereWithAggregatesInput.js +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/AlpacaAccountScalarWhereWithAggregatesInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/AlpacaAccountWhereInput.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/AlpacaAccountWhereInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/AlpacaAccountWhereInput.js +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/AlpacaAccountWhereInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableFilter.d.ts +11 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableFilter.d.ts.map +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableFilter.js +91 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableFilter.js.map +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableWithAggregatesFilter.d.ts +16 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableWithAggregatesFilter.d.ts.map +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableWithAggregatesFilter.js +111 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableWithAggregatesFilter.js.map +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/UserScalarWhereInput.d.ts +2 -1
- package/generated/typegraphql-prisma/resolvers/inputs/UserScalarWhereInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/UserScalarWhereInput.js +2 -1
- package/generated/typegraphql-prisma/resolvers/inputs/UserScalarWhereInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/UserScalarWhereWithAggregatesInput.d.ts +2 -1
- package/generated/typegraphql-prisma/resolvers/inputs/UserScalarWhereWithAggregatesInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/UserScalarWhereWithAggregatesInput.js +2 -1
- package/generated/typegraphql-prisma/resolvers/inputs/UserScalarWhereWithAggregatesInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/UserWhereInput.d.ts +2 -1
- package/generated/typegraphql-prisma/resolvers/inputs/UserWhereInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/UserWhereInput.js +2 -1
- package/generated/typegraphql-prisma/resolvers/inputs/UserWhereInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/UserWhereUniqueInput.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/UserWhereUniqueInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/UserWhereUniqueInput.js +6 -6
- package/generated/typegraphql-prisma/resolvers/inputs/UserWhereUniqueInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/UuidNullableFilter.d.ts +13 -0
- package/generated/typegraphql-prisma/resolvers/inputs/UuidNullableFilter.d.ts.map +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/UuidNullableFilter.js +99 -0
- package/generated/typegraphql-prisma/resolvers/inputs/UuidNullableFilter.js.map +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/UuidNullableWithAggregatesFilter.d.ts +18 -0
- package/generated/typegraphql-prisma/resolvers/inputs/UuidNullableWithAggregatesFilter.d.ts.map +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/UuidNullableWithAggregatesFilter.js +119 -0
- package/generated/typegraphql-prisma/resolvers/inputs/UuidNullableWithAggregatesFilter.js.map +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/index.d.ts +4 -0
- package/generated/typegraphql-prisma/resolvers/inputs/index.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/index.js +19 -11
- package/generated/typegraphql-prisma/resolvers/inputs/index.js.map +1 -1
- package/index.d.ts +147 -147
- package/package.json +2 -4
- package/server/AIRecommendation.d.ts +7 -8
- package/server/AIRecommendation.d.ts.map +1 -1
- package/server/AIRecommendation.js.map +1 -1
- package/server/AIRecommendation.mjs +15 -7
- package/server/Account.d.ts +7 -8
- package/server/Account.d.ts.map +1 -1
- package/server/Account.js.map +1 -1
- package/server/Account.mjs +15 -7
- package/server/Alert.d.ts +7 -8
- package/server/Alert.d.ts.map +1 -1
- package/server/Alert.js.map +1 -1
- package/server/Alert.mjs +15 -7
- package/server/AlpacaAccount.d.ts +7 -8
- package/server/AlpacaAccount.d.ts.map +1 -1
- package/server/AlpacaAccount.js.map +1 -1
- package/server/AlpacaAccount.mjs +15 -7
- package/server/Asset.d.ts +7 -8
- package/server/Asset.d.ts.map +1 -1
- package/server/Asset.js.map +1 -1
- package/server/Asset.mjs +15 -7
- package/server/Authenticator.d.ts +7 -8
- package/server/Authenticator.d.ts.map +1 -1
- package/server/Authenticator.js.map +1 -1
- package/server/Authenticator.mjs +15 -7
- package/server/Customer.d.ts +7 -8
- package/server/Customer.d.ts.map +1 -1
- package/server/Customer.js.map +1 -1
- package/server/Customer.mjs +15 -7
- package/server/EconomicEvent.d.ts +7 -8
- package/server/EconomicEvent.d.ts.map +1 -1
- package/server/EconomicEvent.js.map +1 -1
- package/server/EconomicEvent.mjs +15 -7
- package/server/EnvironmentVariable.d.ts +7 -8
- package/server/EnvironmentVariable.d.ts.map +1 -1
- package/server/EnvironmentVariable.js.map +1 -1
- package/server/EnvironmentVariable.mjs +15 -7
- package/server/Holding.d.ts +7 -8
- package/server/Holding.d.ts.map +1 -1
- package/server/Holding.js.map +1 -1
- package/server/Holding.mjs +15 -7
- package/server/NewsArticle.d.ts +7 -8
- package/server/NewsArticle.d.ts.map +1 -1
- package/server/NewsArticle.js.map +1 -1
- package/server/NewsArticle.mjs +15 -7
- package/server/NewsArticleAssetSentiment.d.ts +7 -8
- package/server/NewsArticleAssetSentiment.d.ts.map +1 -1
- package/server/NewsArticleAssetSentiment.js.map +1 -1
- package/server/NewsArticleAssetSentiment.mjs +15 -7
- package/server/Order.d.ts +7 -8
- package/server/Order.d.ts.map +1 -1
- package/server/Order.js.map +1 -1
- package/server/Order.mjs +15 -7
- package/server/PerformanceMetric.d.ts +7 -8
- package/server/PerformanceMetric.d.ts.map +1 -1
- package/server/PerformanceMetric.js.map +1 -1
- package/server/PerformanceMetric.mjs +15 -7
- package/server/RiskAllocation.d.ts +7 -8
- package/server/RiskAllocation.d.ts.map +1 -1
- package/server/RiskAllocation.js.map +1 -1
- package/server/RiskAllocation.mjs +15 -7
- package/server/Session.d.ts +7 -8
- package/server/Session.d.ts.map +1 -1
- package/server/Session.js.map +1 -1
- package/server/Session.mjs +15 -7
- package/server/Trade.d.ts +7 -8
- package/server/Trade.d.ts.map +1 -1
- package/server/Trade.js.map +1 -1
- package/server/Trade.mjs +15 -7
- package/server/TradeStep.d.ts +7 -8
- package/server/TradeStep.d.ts.map +1 -1
- package/server/TradeStep.js.map +1 -1
- package/server/TradeStep.mjs +15 -7
- package/server/TradingAccount.d.ts +7 -8
- package/server/TradingAccount.d.ts.map +1 -1
- package/server/TradingAccount.js.map +1 -1
- package/server/TradingAccount.mjs +15 -7
- package/server/User.d.ts +7 -8
- package/server/User.d.ts.map +1 -1
- package/server/User.js.map +1 -1
- package/server/User.mjs +15 -7
- package/server/VerificationToken.d.ts +7 -8
- package/server/VerificationToken.d.ts.map +1 -1
- package/server/VerificationToken.js.map +1 -1
- package/server/VerificationToken.mjs +15 -7
- package/server/client.d.ts +6 -0
- package/server/client.d.ts.map +1 -0
- package/server/client.js.map +1 -0
- package/server/client.mjs +74 -0
- package/server/generated/typegraphql-prisma/enhance.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/enhance.js.map +1 -1
- package/server/generated/typegraphql-prisma/enhance.mjs +5 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/AlpacaAccountScalarWhereWithAggregatesInput.d.ts +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/AlpacaAccountScalarWhereWithAggregatesInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/AlpacaAccountScalarWhereWithAggregatesInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/AlpacaAccountScalarWhereWithAggregatesInput.mjs +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/AlpacaAccountWhereInput.d.ts +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/AlpacaAccountWhereInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/AlpacaAccountWhereInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/AlpacaAccountWhereInput.mjs +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableFilter.d.ts +11 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableFilter.d.ts.map +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableFilter.js.map +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableFilter.mjs +73 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableWithAggregatesFilter.d.ts +16 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableWithAggregatesFilter.d.ts.map +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableWithAggregatesFilter.js.map +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableWithAggregatesFilter.mjs +96 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/UserScalarWhereInput.d.ts +2 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/UserScalarWhereInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/UserScalarWhereInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/UserScalarWhereInput.mjs +2 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/UserScalarWhereWithAggregatesInput.d.ts +2 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/UserScalarWhereWithAggregatesInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/UserScalarWhereWithAggregatesInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/UserScalarWhereWithAggregatesInput.mjs +2 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/UserWhereInput.d.ts +2 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/UserWhereInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/UserWhereInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/UserWhereInput.mjs +2 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/UserWhereUniqueInput.d.ts +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/UserWhereUniqueInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/UserWhereUniqueInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/UserWhereUniqueInput.mjs +7 -7
- package/server/generated/typegraphql-prisma/resolvers/inputs/UuidNullableFilter.d.ts +13 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/UuidNullableFilter.d.ts.map +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/UuidNullableFilter.js.map +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/UuidNullableFilter.mjs +82 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/UuidNullableWithAggregatesFilter.d.ts +18 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/UuidNullableWithAggregatesFilter.d.ts.map +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/UuidNullableWithAggregatesFilter.js.map +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/UuidNullableWithAggregatesFilter.mjs +105 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/index.d.ts +4 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/index.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/index.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/index.mjs +4 -0
- package/server/index.d.ts +147 -147
package/Asset.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Asset = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
|
+
const client_2 = require("./client");
|
|
5
6
|
const utils_1 = require("./utils");
|
|
6
7
|
/**
|
|
7
8
|
* CRUD operations for the Asset model.
|
|
@@ -13,7 +14,8 @@ exports.Asset = {
|
|
|
13
14
|
* @param client - Apollo Client instance.
|
|
14
15
|
* @returns The created Asset or null.
|
|
15
16
|
*/
|
|
16
|
-
async create(props
|
|
17
|
+
async create(props) {
|
|
18
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
17
19
|
const CREATE_ONE_ASSET = (0, client_1.gql) `
|
|
18
20
|
mutation createOneAsset($data: AssetCreateInput!) {
|
|
19
21
|
createOneAsset(data: $data) {
|
|
@@ -647,7 +649,8 @@ exports.Asset = {
|
|
|
647
649
|
* @param client - Apollo Client instance.
|
|
648
650
|
* @returns The count of created records or null.
|
|
649
651
|
*/
|
|
650
|
-
async createMany(props
|
|
652
|
+
async createMany(props) {
|
|
653
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
651
654
|
const CREATE_MANY_ASSET = (0, client_1.gql) `
|
|
652
655
|
mutation createManyAsset($data: [AssetCreateManyInput!]!) {
|
|
653
656
|
createManyAsset(data: $data) {
|
|
@@ -734,7 +737,8 @@ exports.Asset = {
|
|
|
734
737
|
* @param client - Apollo Client instance.
|
|
735
738
|
* @returns The updated Asset or null.
|
|
736
739
|
*/
|
|
737
|
-
async update(props
|
|
740
|
+
async update(props) {
|
|
741
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
738
742
|
const UPDATE_ONE_ASSET = (0, client_1.gql) `
|
|
739
743
|
mutation updateOneAsset($data: AssetUpdateInput!, $where: AssetWhereUniqueInput!) {
|
|
740
744
|
updateOneAsset(data: $data, where: $where) {
|
|
@@ -1982,7 +1986,8 @@ exports.Asset = {
|
|
|
1982
1986
|
* @param client - Apollo Client instance.
|
|
1983
1987
|
* @returns The deleted Asset or null.
|
|
1984
1988
|
*/
|
|
1985
|
-
async delete(props
|
|
1989
|
+
async delete(props) {
|
|
1990
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
1986
1991
|
const DELETE_ONE_ASSET = (0, client_1.gql) `
|
|
1987
1992
|
mutation deleteOneAsset($where: AssetWhereUniqueInput!) {
|
|
1988
1993
|
deleteOneAsset(where: $where) {
|
|
@@ -2315,8 +2320,9 @@ exports.Asset = {
|
|
|
2315
2320
|
* @param client - Apollo Client instance.
|
|
2316
2321
|
* @returns The retrieved Asset or null.
|
|
2317
2322
|
*/
|
|
2318
|
-
async get(props
|
|
2323
|
+
async get(props) {
|
|
2319
2324
|
var _a, _b;
|
|
2325
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
2320
2326
|
const GET_ASSET = (0, client_1.gql) `
|
|
2321
2327
|
query getAsset($where: AssetWhereUniqueInput!) {
|
|
2322
2328
|
getAsset(where: $where) {
|
|
@@ -2650,8 +2656,9 @@ exports.Asset = {
|
|
|
2650
2656
|
* @param client - Apollo Client instance.
|
|
2651
2657
|
* @returns An array of Asset records or null.
|
|
2652
2658
|
*/
|
|
2653
|
-
async getAll(
|
|
2659
|
+
async getAll() {
|
|
2654
2660
|
var _a, _b;
|
|
2661
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
2655
2662
|
const GET_ALL_ASSET = (0, client_1.gql) `
|
|
2656
2663
|
query getAllAsset {
|
|
2657
2664
|
assets {
|
|
@@ -2978,7 +2985,8 @@ exports.Asset = {
|
|
|
2978
2985
|
* @param client - Apollo Client instance.
|
|
2979
2986
|
* @returns An array of found Asset records or null.
|
|
2980
2987
|
*/
|
|
2981
|
-
async findMany(props
|
|
2988
|
+
async findMany(props) {
|
|
2989
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
2982
2990
|
const FIND_MANY_ASSET = (0, client_1.gql) `
|
|
2983
2991
|
query findManyAsset($where: AssetWhereInput!) {
|
|
2984
2992
|
assets(where: $where) {
|
package/Authenticator.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Authenticator as AuthenticatorType } from './generated/typegraphql-prisma/models/Authenticator';
|
|
2
|
-
import { ApolloClient, NormalizedCacheObject } from '@apollo/client';
|
|
3
2
|
/**
|
|
4
3
|
* CRUD operations for the Authenticator model.
|
|
5
4
|
*/
|
|
@@ -10,14 +9,14 @@ export declare const Authenticator: {
|
|
|
10
9
|
* @param client - Apollo Client instance.
|
|
11
10
|
* @returns The created Authenticator or null.
|
|
12
11
|
*/
|
|
13
|
-
create(props: AuthenticatorType
|
|
12
|
+
create(props: AuthenticatorType): Promise<AuthenticatorType>;
|
|
14
13
|
/**
|
|
15
14
|
* Create multiple Authenticator records.
|
|
16
15
|
* @param props - Array of properties for the new records.
|
|
17
16
|
* @param client - Apollo Client instance.
|
|
18
17
|
* @returns The count of created records or null.
|
|
19
18
|
*/
|
|
20
|
-
createMany(props: AuthenticatorType[]
|
|
19
|
+
createMany(props: AuthenticatorType[]): Promise<{
|
|
21
20
|
count: number;
|
|
22
21
|
} | null>;
|
|
23
22
|
/**
|
|
@@ -26,33 +25,33 @@ export declare const Authenticator: {
|
|
|
26
25
|
* @param client - Apollo Client instance.
|
|
27
26
|
* @returns The updated Authenticator or null.
|
|
28
27
|
*/
|
|
29
|
-
update(props: AuthenticatorType
|
|
28
|
+
update(props: AuthenticatorType): Promise<AuthenticatorType>;
|
|
30
29
|
/**
|
|
31
30
|
* Delete a single Authenticator record.
|
|
32
31
|
* @param props - Properties to update.
|
|
33
32
|
* @param client - Apollo Client instance.
|
|
34
33
|
* @returns The deleted Authenticator or null.
|
|
35
34
|
*/
|
|
36
|
-
delete(props: AuthenticatorType
|
|
35
|
+
delete(props: AuthenticatorType): Promise<AuthenticatorType>;
|
|
37
36
|
/**
|
|
38
37
|
* Retrieve a single Authenticator record by ID.
|
|
39
38
|
* @param props - Properties to update.
|
|
40
39
|
* @param client - Apollo Client instance.
|
|
41
40
|
* @returns The retrieved Authenticator or null.
|
|
42
41
|
*/
|
|
43
|
-
get(props: AuthenticatorType
|
|
42
|
+
get(props: AuthenticatorType): Promise<AuthenticatorType | null>;
|
|
44
43
|
/**
|
|
45
44
|
* Retrieve all Authenticators records.
|
|
46
45
|
* @param client - Apollo Client instance.
|
|
47
46
|
* @returns An array of Authenticator records or null.
|
|
48
47
|
*/
|
|
49
|
-
getAll(
|
|
48
|
+
getAll(): Promise<AuthenticatorType[] | null>;
|
|
50
49
|
/**
|
|
51
50
|
* Find multiple Authenticator records based on conditions.
|
|
52
51
|
* @param where - Conditions to find records.
|
|
53
52
|
* @param client - Apollo Client instance.
|
|
54
53
|
* @returns An array of found Authenticator records or null.
|
|
55
54
|
*/
|
|
56
|
-
findMany(props: AuthenticatorType
|
|
55
|
+
findMany(props: AuthenticatorType): Promise<AuthenticatorType[] | null>;
|
|
57
56
|
};
|
|
58
57
|
//# sourceMappingURL=Authenticator.d.ts.map
|
package/Authenticator.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Authenticator = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
|
+
const client_2 = require("./client");
|
|
5
6
|
const utils_1 = require("./utils");
|
|
6
7
|
/**
|
|
7
8
|
* CRUD operations for the Authenticator model.
|
|
@@ -13,7 +14,8 @@ exports.Authenticator = {
|
|
|
13
14
|
* @param client - Apollo Client instance.
|
|
14
15
|
* @returns The created Authenticator or null.
|
|
15
16
|
*/
|
|
16
|
-
async create(props
|
|
17
|
+
async create(props) {
|
|
18
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
17
19
|
const CREATE_ONE_AUTHENTICATOR = (0, client_1.gql) `
|
|
18
20
|
mutation createOneAuthenticator($data: AuthenticatorCreateInput!) {
|
|
19
21
|
createOneAuthenticator(data: $data) {
|
|
@@ -544,7 +546,8 @@ exports.Authenticator = {
|
|
|
544
546
|
* @param client - Apollo Client instance.
|
|
545
547
|
* @returns The count of created records or null.
|
|
546
548
|
*/
|
|
547
|
-
async createMany(props
|
|
549
|
+
async createMany(props) {
|
|
550
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
548
551
|
const CREATE_MANY_AUTHENTICATOR = (0, client_1.gql) `
|
|
549
552
|
mutation createManyAuthenticator($data: [AuthenticatorCreateManyInput!]!) {
|
|
550
553
|
createManyAuthenticator(data: $data) {
|
|
@@ -582,7 +585,8 @@ exports.Authenticator = {
|
|
|
582
585
|
* @param client - Apollo Client instance.
|
|
583
586
|
* @returns The updated Authenticator or null.
|
|
584
587
|
*/
|
|
585
|
-
async update(props
|
|
588
|
+
async update(props) {
|
|
589
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
586
590
|
const UPDATE_ONE_AUTHENTICATOR = (0, client_1.gql) `
|
|
587
591
|
mutation updateOneAuthenticator($data: AuthenticatorUpdateInput!, $where: AuthenticatorWhereUniqueInput!) {
|
|
588
592
|
updateOneAuthenticator(data: $data, where: $where) {
|
|
@@ -1460,7 +1464,8 @@ exports.Authenticator = {
|
|
|
1460
1464
|
* @param client - Apollo Client instance.
|
|
1461
1465
|
* @returns The deleted Authenticator or null.
|
|
1462
1466
|
*/
|
|
1463
|
-
async delete(props
|
|
1467
|
+
async delete(props) {
|
|
1468
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
1464
1469
|
const DELETE_ONE_AUTHENTICATOR = (0, client_1.gql) `
|
|
1465
1470
|
mutation deleteOneAuthenticator($where: AuthenticatorWhereUniqueInput!) {
|
|
1466
1471
|
deleteOneAuthenticator(where: $where) {
|
|
@@ -1814,8 +1819,9 @@ exports.Authenticator = {
|
|
|
1814
1819
|
* @param client - Apollo Client instance.
|
|
1815
1820
|
* @returns The retrieved Authenticator or null.
|
|
1816
1821
|
*/
|
|
1817
|
-
async get(props
|
|
1822
|
+
async get(props) {
|
|
1818
1823
|
var _a, _b;
|
|
1824
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
1819
1825
|
const GET_AUTHENTICATOR = (0, client_1.gql) `
|
|
1820
1826
|
query getAuthenticator($where: AuthenticatorWhereUniqueInput!) {
|
|
1821
1827
|
getAuthenticator(where: $where) {
|
|
@@ -2168,8 +2174,9 @@ exports.Authenticator = {
|
|
|
2168
2174
|
* @param client - Apollo Client instance.
|
|
2169
2175
|
* @returns An array of Authenticator records or null.
|
|
2170
2176
|
*/
|
|
2171
|
-
async getAll(
|
|
2177
|
+
async getAll() {
|
|
2172
2178
|
var _a, _b;
|
|
2179
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
2173
2180
|
const GET_ALL_AUTHENTICATOR = (0, client_1.gql) `
|
|
2174
2181
|
query getAllAuthenticator {
|
|
2175
2182
|
authenticators {
|
|
@@ -2517,7 +2524,8 @@ exports.Authenticator = {
|
|
|
2517
2524
|
* @param client - Apollo Client instance.
|
|
2518
2525
|
* @returns An array of found Authenticator records or null.
|
|
2519
2526
|
*/
|
|
2520
|
-
async findMany(props
|
|
2527
|
+
async findMany(props) {
|
|
2528
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
2521
2529
|
const FIND_MANY_AUTHENTICATOR = (0, client_1.gql) `
|
|
2522
2530
|
query findManyAuthenticator($where: AuthenticatorWhereInput!) {
|
|
2523
2531
|
authenticators(where: $where) {
|
package/Customer.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Customer as CustomerType } from './generated/typegraphql-prisma/models/Customer';
|
|
2
|
-
import { ApolloClient, NormalizedCacheObject } from '@apollo/client';
|
|
3
2
|
/**
|
|
4
3
|
* CRUD operations for the Customer model.
|
|
5
4
|
*/
|
|
@@ -10,14 +9,14 @@ export declare const Customer: {
|
|
|
10
9
|
* @param client - Apollo Client instance.
|
|
11
10
|
* @returns The created Customer or null.
|
|
12
11
|
*/
|
|
13
|
-
create(props: CustomerType
|
|
12
|
+
create(props: CustomerType): Promise<CustomerType>;
|
|
14
13
|
/**
|
|
15
14
|
* Create multiple Customer records.
|
|
16
15
|
* @param props - Array of properties for the new records.
|
|
17
16
|
* @param client - Apollo Client instance.
|
|
18
17
|
* @returns The count of created records or null.
|
|
19
18
|
*/
|
|
20
|
-
createMany(props: CustomerType[]
|
|
19
|
+
createMany(props: CustomerType[]): Promise<{
|
|
21
20
|
count: number;
|
|
22
21
|
} | null>;
|
|
23
22
|
/**
|
|
@@ -26,33 +25,33 @@ export declare const Customer: {
|
|
|
26
25
|
* @param client - Apollo Client instance.
|
|
27
26
|
* @returns The updated Customer or null.
|
|
28
27
|
*/
|
|
29
|
-
update(props: CustomerType
|
|
28
|
+
update(props: CustomerType): Promise<CustomerType>;
|
|
30
29
|
/**
|
|
31
30
|
* Delete a single Customer record.
|
|
32
31
|
* @param props - Properties to update.
|
|
33
32
|
* @param client - Apollo Client instance.
|
|
34
33
|
* @returns The deleted Customer or null.
|
|
35
34
|
*/
|
|
36
|
-
delete(props: CustomerType
|
|
35
|
+
delete(props: CustomerType): Promise<CustomerType>;
|
|
37
36
|
/**
|
|
38
37
|
* Retrieve a single Customer record by ID.
|
|
39
38
|
* @param props - Properties to update.
|
|
40
39
|
* @param client - Apollo Client instance.
|
|
41
40
|
* @returns The retrieved Customer or null.
|
|
42
41
|
*/
|
|
43
|
-
get(props: CustomerType
|
|
42
|
+
get(props: CustomerType): Promise<CustomerType | null>;
|
|
44
43
|
/**
|
|
45
44
|
* Retrieve all Customers records.
|
|
46
45
|
* @param client - Apollo Client instance.
|
|
47
46
|
* @returns An array of Customer records or null.
|
|
48
47
|
*/
|
|
49
|
-
getAll(
|
|
48
|
+
getAll(): Promise<CustomerType[] | null>;
|
|
50
49
|
/**
|
|
51
50
|
* Find multiple Customer records based on conditions.
|
|
52
51
|
* @param where - Conditions to find records.
|
|
53
52
|
* @param client - Apollo Client instance.
|
|
54
53
|
* @returns An array of found Customer records or null.
|
|
55
54
|
*/
|
|
56
|
-
findMany(props: CustomerType
|
|
55
|
+
findMany(props: CustomerType): Promise<CustomerType[] | null>;
|
|
57
56
|
};
|
|
58
57
|
//# sourceMappingURL=Customer.d.ts.map
|
package/Customer.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Customer = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
|
+
const client_2 = require("./client");
|
|
5
6
|
const utils_1 = require("./utils");
|
|
6
7
|
/**
|
|
7
8
|
* CRUD operations for the Customer model.
|
|
@@ -13,7 +14,8 @@ exports.Customer = {
|
|
|
13
14
|
* @param client - Apollo Client instance.
|
|
14
15
|
* @returns The created Customer or null.
|
|
15
16
|
*/
|
|
16
|
-
async create(props
|
|
17
|
+
async create(props) {
|
|
18
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
17
19
|
const CREATE_ONE_CUSTOMER = (0, client_1.gql) `
|
|
18
20
|
mutation createOneCustomer($data: CustomerCreateInput!) {
|
|
19
21
|
createOneCustomer(data: $data) {
|
|
@@ -541,7 +543,8 @@ exports.Customer = {
|
|
|
541
543
|
* @param client - Apollo Client instance.
|
|
542
544
|
* @returns The count of created records or null.
|
|
543
545
|
*/
|
|
544
|
-
async createMany(props
|
|
546
|
+
async createMany(props) {
|
|
547
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
545
548
|
const CREATE_MANY_CUSTOMER = (0, client_1.gql) `
|
|
546
549
|
mutation createManyCustomer($data: [CustomerCreateManyInput!]!) {
|
|
547
550
|
createManyCustomer(data: $data) {
|
|
@@ -582,7 +585,8 @@ exports.Customer = {
|
|
|
582
585
|
* @param client - Apollo Client instance.
|
|
583
586
|
* @returns The updated Customer or null.
|
|
584
587
|
*/
|
|
585
|
-
async update(props
|
|
588
|
+
async update(props) {
|
|
589
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
586
590
|
const UPDATE_ONE_CUSTOMER = (0, client_1.gql) `
|
|
587
591
|
mutation updateOneCustomer($data: CustomerUpdateInput!, $where: CustomerWhereUniqueInput!) {
|
|
588
592
|
updateOneCustomer(data: $data, where: $where) {
|
|
@@ -1443,7 +1447,8 @@ exports.Customer = {
|
|
|
1443
1447
|
* @param client - Apollo Client instance.
|
|
1444
1448
|
* @returns The deleted Customer or null.
|
|
1445
1449
|
*/
|
|
1446
|
-
async delete(props
|
|
1450
|
+
async delete(props) {
|
|
1451
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
1447
1452
|
const DELETE_ONE_CUSTOMER = (0, client_1.gql) `
|
|
1448
1453
|
mutation deleteOneCustomer($where: CustomerWhereUniqueInput!) {
|
|
1449
1454
|
deleteOneCustomer(where: $where) {
|
|
@@ -1797,8 +1802,9 @@ exports.Customer = {
|
|
|
1797
1802
|
* @param client - Apollo Client instance.
|
|
1798
1803
|
* @returns The retrieved Customer or null.
|
|
1799
1804
|
*/
|
|
1800
|
-
async get(props
|
|
1805
|
+
async get(props) {
|
|
1801
1806
|
var _a, _b;
|
|
1807
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
1802
1808
|
const GET_CUSTOMER = (0, client_1.gql) `
|
|
1803
1809
|
query getCustomer($where: CustomerWhereUniqueInput!) {
|
|
1804
1810
|
getCustomer(where: $where) {
|
|
@@ -2154,8 +2160,9 @@ exports.Customer = {
|
|
|
2154
2160
|
* @param client - Apollo Client instance.
|
|
2155
2161
|
* @returns An array of Customer records or null.
|
|
2156
2162
|
*/
|
|
2157
|
-
async getAll(
|
|
2163
|
+
async getAll() {
|
|
2158
2164
|
var _a, _b;
|
|
2165
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
2159
2166
|
const GET_ALL_CUSTOMER = (0, client_1.gql) `
|
|
2160
2167
|
query getAllCustomer {
|
|
2161
2168
|
customers {
|
|
@@ -2503,7 +2510,8 @@ exports.Customer = {
|
|
|
2503
2510
|
* @param client - Apollo Client instance.
|
|
2504
2511
|
* @returns An array of found Customer records or null.
|
|
2505
2512
|
*/
|
|
2506
|
-
async findMany(props
|
|
2513
|
+
async findMany(props) {
|
|
2514
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
2507
2515
|
const FIND_MANY_CUSTOMER = (0, client_1.gql) `
|
|
2508
2516
|
query findManyCustomer($where: CustomerWhereInput!) {
|
|
2509
2517
|
customers(where: $where) {
|
package/EconomicEvent.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { EconomicEvent as EconomicEventType } from './generated/typegraphql-prisma/models/EconomicEvent';
|
|
2
|
-
import { ApolloClient, NormalizedCacheObject } from '@apollo/client';
|
|
3
2
|
/**
|
|
4
3
|
* CRUD operations for the EconomicEvent model.
|
|
5
4
|
*/
|
|
@@ -10,14 +9,14 @@ export declare const EconomicEvent: {
|
|
|
10
9
|
* @param client - Apollo Client instance.
|
|
11
10
|
* @returns The created EconomicEvent or null.
|
|
12
11
|
*/
|
|
13
|
-
create(props: EconomicEventType
|
|
12
|
+
create(props: EconomicEventType): Promise<EconomicEventType>;
|
|
14
13
|
/**
|
|
15
14
|
* Create multiple EconomicEvent records.
|
|
16
15
|
* @param props - Array of properties for the new records.
|
|
17
16
|
* @param client - Apollo Client instance.
|
|
18
17
|
* @returns The count of created records or null.
|
|
19
18
|
*/
|
|
20
|
-
createMany(props: EconomicEventType[]
|
|
19
|
+
createMany(props: EconomicEventType[]): Promise<{
|
|
21
20
|
count: number;
|
|
22
21
|
} | null>;
|
|
23
22
|
/**
|
|
@@ -26,33 +25,33 @@ export declare const EconomicEvent: {
|
|
|
26
25
|
* @param client - Apollo Client instance.
|
|
27
26
|
* @returns The updated EconomicEvent or null.
|
|
28
27
|
*/
|
|
29
|
-
update(props: EconomicEventType
|
|
28
|
+
update(props: EconomicEventType): Promise<EconomicEventType>;
|
|
30
29
|
/**
|
|
31
30
|
* Delete a single EconomicEvent record.
|
|
32
31
|
* @param props - Properties to update.
|
|
33
32
|
* @param client - Apollo Client instance.
|
|
34
33
|
* @returns The deleted EconomicEvent or null.
|
|
35
34
|
*/
|
|
36
|
-
delete(props: EconomicEventType
|
|
35
|
+
delete(props: EconomicEventType): Promise<EconomicEventType>;
|
|
37
36
|
/**
|
|
38
37
|
* Retrieve a single EconomicEvent record by ID.
|
|
39
38
|
* @param props - Properties to update.
|
|
40
39
|
* @param client - Apollo Client instance.
|
|
41
40
|
* @returns The retrieved EconomicEvent or null.
|
|
42
41
|
*/
|
|
43
|
-
get(props: EconomicEventType
|
|
42
|
+
get(props: EconomicEventType): Promise<EconomicEventType | null>;
|
|
44
43
|
/**
|
|
45
44
|
* Retrieve all EconomicEvents records.
|
|
46
45
|
* @param client - Apollo Client instance.
|
|
47
46
|
* @returns An array of EconomicEvent records or null.
|
|
48
47
|
*/
|
|
49
|
-
getAll(
|
|
48
|
+
getAll(): Promise<EconomicEventType[] | null>;
|
|
50
49
|
/**
|
|
51
50
|
* Find multiple EconomicEvent records based on conditions.
|
|
52
51
|
* @param where - Conditions to find records.
|
|
53
52
|
* @param client - Apollo Client instance.
|
|
54
53
|
* @returns An array of found EconomicEvent records or null.
|
|
55
54
|
*/
|
|
56
|
-
findMany(props: EconomicEventType
|
|
55
|
+
findMany(props: EconomicEventType): Promise<EconomicEventType[] | null>;
|
|
57
56
|
};
|
|
58
57
|
//# sourceMappingURL=EconomicEvent.d.ts.map
|
package/EconomicEvent.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.EconomicEvent = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
|
+
const client_2 = require("./client");
|
|
5
6
|
const utils_1 = require("./utils");
|
|
6
7
|
/**
|
|
7
8
|
* CRUD operations for the EconomicEvent model.
|
|
@@ -13,7 +14,8 @@ exports.EconomicEvent = {
|
|
|
13
14
|
* @param client - Apollo Client instance.
|
|
14
15
|
* @returns The created EconomicEvent or null.
|
|
15
16
|
*/
|
|
16
|
-
async create(props
|
|
17
|
+
async create(props) {
|
|
18
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
17
19
|
const CREATE_ONE_ECONOMICEVENT = (0, client_1.gql) `
|
|
18
20
|
mutation createOneEconomicEvent($data: EconomicEventCreateInput!) {
|
|
19
21
|
createOneEconomicEvent(data: $data) {
|
|
@@ -58,7 +60,8 @@ exports.EconomicEvent = {
|
|
|
58
60
|
* @param client - Apollo Client instance.
|
|
59
61
|
* @returns The count of created records or null.
|
|
60
62
|
*/
|
|
61
|
-
async createMany(props
|
|
63
|
+
async createMany(props) {
|
|
64
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
62
65
|
const CREATE_MANY_ECONOMICEVENT = (0, client_1.gql) `
|
|
63
66
|
mutation createManyEconomicEvent($data: [EconomicEventCreateManyInput!]!) {
|
|
64
67
|
createManyEconomicEvent(data: $data) {
|
|
@@ -96,7 +99,8 @@ exports.EconomicEvent = {
|
|
|
96
99
|
* @param client - Apollo Client instance.
|
|
97
100
|
* @returns The updated EconomicEvent or null.
|
|
98
101
|
*/
|
|
99
|
-
async update(props
|
|
102
|
+
async update(props) {
|
|
103
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
100
104
|
const UPDATE_ONE_ECONOMICEVENT = (0, client_1.gql) `
|
|
101
105
|
mutation updateOneEconomicEvent($data: EconomicEventUpdateInput!, $where: EconomicEventWhereUniqueInput!) {
|
|
102
106
|
updateOneEconomicEvent(data: $data, where: $where) {
|
|
@@ -148,7 +152,8 @@ exports.EconomicEvent = {
|
|
|
148
152
|
* @param client - Apollo Client instance.
|
|
149
153
|
* @returns The deleted EconomicEvent or null.
|
|
150
154
|
*/
|
|
151
|
-
async delete(props
|
|
155
|
+
async delete(props) {
|
|
156
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
152
157
|
const DELETE_ONE_ECONOMICEVENT = (0, client_1.gql) `
|
|
153
158
|
mutation deleteOneEconomicEvent($where: EconomicEventWhereUniqueInput!) {
|
|
154
159
|
deleteOneEconomicEvent(where: $where) {
|
|
@@ -189,8 +194,9 @@ exports.EconomicEvent = {
|
|
|
189
194
|
* @param client - Apollo Client instance.
|
|
190
195
|
* @returns The retrieved EconomicEvent or null.
|
|
191
196
|
*/
|
|
192
|
-
async get(props
|
|
197
|
+
async get(props) {
|
|
193
198
|
var _a, _b;
|
|
199
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
194
200
|
const GET_ECONOMICEVENT = (0, client_1.gql) `
|
|
195
201
|
query getEconomicEvent($where: EconomicEventWhereUniqueInput!) {
|
|
196
202
|
getEconomicEvent(where: $where) {
|
|
@@ -233,8 +239,9 @@ exports.EconomicEvent = {
|
|
|
233
239
|
* @param client - Apollo Client instance.
|
|
234
240
|
* @returns An array of EconomicEvent records or null.
|
|
235
241
|
*/
|
|
236
|
-
async getAll(
|
|
242
|
+
async getAll() {
|
|
237
243
|
var _a, _b;
|
|
244
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
238
245
|
const GET_ALL_ECONOMICEVENT = (0, client_1.gql) `
|
|
239
246
|
query getAllEconomicEvent {
|
|
240
247
|
economicEvents {
|
|
@@ -269,7 +276,8 @@ exports.EconomicEvent = {
|
|
|
269
276
|
* @param client - Apollo Client instance.
|
|
270
277
|
* @returns An array of found EconomicEvent records or null.
|
|
271
278
|
*/
|
|
272
|
-
async findMany(props
|
|
279
|
+
async findMany(props) {
|
|
280
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
273
281
|
const FIND_MANY_ECONOMICEVENT = (0, client_1.gql) `
|
|
274
282
|
query findManyEconomicEvent($where: EconomicEventWhereInput!) {
|
|
275
283
|
economicEvents(where: $where) {
|
package/EnvironmentVariable.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { EnvironmentVariable as EnvironmentVariableType } from './generated/typegraphql-prisma/models/EnvironmentVariable';
|
|
2
|
-
import { ApolloClient, NormalizedCacheObject } from '@apollo/client';
|
|
3
2
|
/**
|
|
4
3
|
* CRUD operations for the EnvironmentVariable model.
|
|
5
4
|
*/
|
|
@@ -10,14 +9,14 @@ export declare const EnvironmentVariable: {
|
|
|
10
9
|
* @param client - Apollo Client instance.
|
|
11
10
|
* @returns The created EnvironmentVariable or null.
|
|
12
11
|
*/
|
|
13
|
-
create(props: EnvironmentVariableType
|
|
12
|
+
create(props: EnvironmentVariableType): Promise<EnvironmentVariableType>;
|
|
14
13
|
/**
|
|
15
14
|
* Create multiple EnvironmentVariable records.
|
|
16
15
|
* @param props - Array of properties for the new records.
|
|
17
16
|
* @param client - Apollo Client instance.
|
|
18
17
|
* @returns The count of created records or null.
|
|
19
18
|
*/
|
|
20
|
-
createMany(props: EnvironmentVariableType[]
|
|
19
|
+
createMany(props: EnvironmentVariableType[]): Promise<{
|
|
21
20
|
count: number;
|
|
22
21
|
} | null>;
|
|
23
22
|
/**
|
|
@@ -26,33 +25,33 @@ export declare const EnvironmentVariable: {
|
|
|
26
25
|
* @param client - Apollo Client instance.
|
|
27
26
|
* @returns The updated EnvironmentVariable or null.
|
|
28
27
|
*/
|
|
29
|
-
update(props: EnvironmentVariableType
|
|
28
|
+
update(props: EnvironmentVariableType): Promise<EnvironmentVariableType>;
|
|
30
29
|
/**
|
|
31
30
|
* Delete a single EnvironmentVariable record.
|
|
32
31
|
* @param props - Properties to update.
|
|
33
32
|
* @param client - Apollo Client instance.
|
|
34
33
|
* @returns The deleted EnvironmentVariable or null.
|
|
35
34
|
*/
|
|
36
|
-
delete(props: EnvironmentVariableType
|
|
35
|
+
delete(props: EnvironmentVariableType): Promise<EnvironmentVariableType>;
|
|
37
36
|
/**
|
|
38
37
|
* Retrieve a single EnvironmentVariable record by ID.
|
|
39
38
|
* @param props - Properties to update.
|
|
40
39
|
* @param client - Apollo Client instance.
|
|
41
40
|
* @returns The retrieved EnvironmentVariable or null.
|
|
42
41
|
*/
|
|
43
|
-
get(props: EnvironmentVariableType
|
|
42
|
+
get(props: EnvironmentVariableType): Promise<EnvironmentVariableType | null>;
|
|
44
43
|
/**
|
|
45
44
|
* Retrieve all EnvironmentVariables records.
|
|
46
45
|
* @param client - Apollo Client instance.
|
|
47
46
|
* @returns An array of EnvironmentVariable records or null.
|
|
48
47
|
*/
|
|
49
|
-
getAll(
|
|
48
|
+
getAll(): Promise<EnvironmentVariableType[] | null>;
|
|
50
49
|
/**
|
|
51
50
|
* Find multiple EnvironmentVariable records based on conditions.
|
|
52
51
|
* @param where - Conditions to find records.
|
|
53
52
|
* @param client - Apollo Client instance.
|
|
54
53
|
* @returns An array of found EnvironmentVariable records or null.
|
|
55
54
|
*/
|
|
56
|
-
findMany(props: EnvironmentVariableType
|
|
55
|
+
findMany(props: EnvironmentVariableType): Promise<EnvironmentVariableType[] | null>;
|
|
57
56
|
};
|
|
58
57
|
//# sourceMappingURL=EnvironmentVariable.d.ts.map
|
package/EnvironmentVariable.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.EnvironmentVariable = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
|
+
const client_2 = require("./client");
|
|
5
6
|
const utils_1 = require("./utils");
|
|
6
7
|
/**
|
|
7
8
|
* CRUD operations for the EnvironmentVariable model.
|
|
@@ -13,7 +14,8 @@ exports.EnvironmentVariable = {
|
|
|
13
14
|
* @param client - Apollo Client instance.
|
|
14
15
|
* @returns The created EnvironmentVariable or null.
|
|
15
16
|
*/
|
|
16
|
-
async create(props
|
|
17
|
+
async create(props) {
|
|
18
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
17
19
|
const CREATE_ONE_ENVIRONMENTVARIABLE = (0, client_1.gql) `
|
|
18
20
|
mutation createOneEnvironmentVariable($data: EnvironmentVariableCreateInput!) {
|
|
19
21
|
createOneEnvironmentVariable(data: $data) {
|
|
@@ -496,7 +498,8 @@ exports.EnvironmentVariable = {
|
|
|
496
498
|
* @param client - Apollo Client instance.
|
|
497
499
|
* @returns The count of created records or null.
|
|
498
500
|
*/
|
|
499
|
-
async createMany(props
|
|
501
|
+
async createMany(props) {
|
|
502
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
500
503
|
const CREATE_MANY_ENVIRONMENTVARIABLE = (0, client_1.gql) `
|
|
501
504
|
mutation createManyEnvironmentVariable($data: [EnvironmentVariableCreateManyInput!]!) {
|
|
502
505
|
createManyEnvironmentVariable(data: $data) {
|
|
@@ -534,7 +537,8 @@ exports.EnvironmentVariable = {
|
|
|
534
537
|
* @param client - Apollo Client instance.
|
|
535
538
|
* @returns The updated EnvironmentVariable or null.
|
|
536
539
|
*/
|
|
537
|
-
async update(props
|
|
540
|
+
async update(props) {
|
|
541
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
538
542
|
const UPDATE_ONE_ENVIRONMENTVARIABLE = (0, client_1.gql) `
|
|
539
543
|
mutation updateOneEnvironmentVariable($data: EnvironmentVariableUpdateInput!, $where: EnvironmentVariableWhereUniqueInput!) {
|
|
540
544
|
updateOneEnvironmentVariable(data: $data, where: $where) {
|
|
@@ -1261,7 +1265,8 @@ exports.EnvironmentVariable = {
|
|
|
1261
1265
|
* @param client - Apollo Client instance.
|
|
1262
1266
|
* @returns The deleted EnvironmentVariable or null.
|
|
1263
1267
|
*/
|
|
1264
|
-
async delete(props
|
|
1268
|
+
async delete(props) {
|
|
1269
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
1265
1270
|
const DELETE_ONE_ENVIRONMENTVARIABLE = (0, client_1.gql) `
|
|
1266
1271
|
mutation deleteOneEnvironmentVariable($where: EnvironmentVariableWhereUniqueInput!) {
|
|
1267
1272
|
deleteOneEnvironmentVariable(where: $where) {
|
|
@@ -1617,8 +1622,9 @@ exports.EnvironmentVariable = {
|
|
|
1617
1622
|
* @param client - Apollo Client instance.
|
|
1618
1623
|
* @returns The retrieved EnvironmentVariable or null.
|
|
1619
1624
|
*/
|
|
1620
|
-
async get(props
|
|
1625
|
+
async get(props) {
|
|
1621
1626
|
var _a, _b;
|
|
1627
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
1622
1628
|
const GET_ENVIRONMENTVARIABLE = (0, client_1.gql) `
|
|
1623
1629
|
query getEnvironmentVariable($where: EnvironmentVariableWhereUniqueInput!) {
|
|
1624
1630
|
getEnvironmentVariable(where: $where) {
|
|
@@ -1976,8 +1982,9 @@ exports.EnvironmentVariable = {
|
|
|
1976
1982
|
* @param client - Apollo Client instance.
|
|
1977
1983
|
* @returns An array of EnvironmentVariable records or null.
|
|
1978
1984
|
*/
|
|
1979
|
-
async getAll(
|
|
1985
|
+
async getAll() {
|
|
1980
1986
|
var _a, _b;
|
|
1987
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
1981
1988
|
const GET_ALL_ENVIRONMENTVARIABLE = (0, client_1.gql) `
|
|
1982
1989
|
query getAllEnvironmentVariable {
|
|
1983
1990
|
environmentVariables {
|
|
@@ -2327,7 +2334,8 @@ exports.EnvironmentVariable = {
|
|
|
2327
2334
|
* @param client - Apollo Client instance.
|
|
2328
2335
|
* @returns An array of found EnvironmentVariable records or null.
|
|
2329
2336
|
*/
|
|
2330
|
-
async findMany(props
|
|
2337
|
+
async findMany(props) {
|
|
2338
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
2331
2339
|
const FIND_MANY_ENVIRONMENTVARIABLE = (0, client_1.gql) `
|
|
2332
2340
|
query findManyEnvironmentVariable($where: EnvironmentVariableWhereInput!) {
|
|
2333
2341
|
environmentVariables(where: $where) {
|