@droz-js/sdk 0.9.43 → 0.9.45
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/package.json +1 -1
- package/src/logger.d.ts +2 -0
- package/src/sdks/drozcommons.d.ts +5 -2
- package/src/sdks/drozcommons.js +12 -3
- package/src/sdks/logger.d.ts +7 -4
- package/src/sdks/logger.js +4 -1
package/package.json
CHANGED
package/src/logger.d.ts
CHANGED
|
@@ -16,6 +16,8 @@ declare const Logger_base: new (options?: import("./client/http").HttpClientOpti
|
|
|
16
16
|
limit?: import("./sdks/logger").InputMaybe<import("./sdks/logger").Scalars["Int"]["input"]>;
|
|
17
17
|
order?: import("./sdks/logger").InputMaybe<import("./sdks/logger").Order>;
|
|
18
18
|
next?: import("./sdks/logger").InputMaybe<import("./sdks/logger").Scalars["Base64"]["input"]>;
|
|
19
|
+
before?: import("./sdks/logger").InputMaybe<import("./sdks/logger").Scalars["DateTime"]["input"]>;
|
|
20
|
+
after?: import("./sdks/logger").InputMaybe<import("./sdks/logger").Scalars["DateTime"]["input"]>;
|
|
19
21
|
}>, options?: unknown): Promise<import("./sdks/logger").ListMessagesQuery>;
|
|
20
22
|
};
|
|
21
23
|
export declare class Logger extends Logger_base {
|
|
@@ -620,8 +620,10 @@ export type GetAuthInfoQuery = {
|
|
|
620
620
|
export type DeploymentFragment = Pick<Deployment, 'id' | 'tenantId' | 'command' | 'gitRepository' | 'branch' | 'status' | 'message' | 'services' | 'deployedVersion' | 'createdAt' | 'updatedAt'>;
|
|
621
621
|
export type GitRepositoryFragment = (Pick<GitRepository, 'id' | 'name'> & {
|
|
622
622
|
branches: Array<GitBranchFragment>;
|
|
623
|
+
tags: Array<GitTagFragment>;
|
|
623
624
|
});
|
|
624
625
|
export type GitBranchFragment = Pick<GitBranch, 'name'>;
|
|
626
|
+
export type GitTagFragment = Pick<GitTag, 'name'>;
|
|
625
627
|
export type ListGitRepositoriesQueryVariables = Exact<{
|
|
626
628
|
[key: string]: never;
|
|
627
629
|
}>;
|
|
@@ -840,7 +842,8 @@ export declare const RegionFragmentDoc = "\n fragment region on Region {\n n
|
|
|
840
842
|
export declare const AwsAccountFragmentDoc = "\n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n availableRegions {\n ...region\n }\n}\n ";
|
|
841
843
|
export declare const DeploymentFragmentDoc = "\n fragment deployment on Deployment {\n id\n tenantId\n command\n gitRepository\n branch\n status\n message\n services\n deployedVersion\n createdAt\n updatedAt\n}\n ";
|
|
842
844
|
export declare const GitBranchFragmentDoc = "\n fragment gitBranch on GitBranch {\n name\n}\n ";
|
|
843
|
-
export declare const
|
|
845
|
+
export declare const GitTagFragmentDoc = "\n fragment gitTag on GitTag {\n name\n}\n ";
|
|
846
|
+
export declare const GitRepositoryFragmentDoc = "\n fragment gitRepository on GitRepository {\n id\n name\n branches {\n ...gitBranch\n }\n tags {\n ...gitTag\n }\n}\n ";
|
|
844
847
|
export declare const ParameterFragmentDoc = "\n fragment parameter on Parameter {\n namespace\n name\n value\n type\n}\n ";
|
|
845
848
|
export declare const ServiceFragmentDoc = "\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n ";
|
|
846
849
|
export declare const TenantFragmentDoc = "\n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n account {\n id\n name\n }\n identityProviders {\n type\n name\n metadataType\n metadataContent\n attributeMapping\n }\n}\n ";
|
|
@@ -850,7 +853,7 @@ export declare const UpdateAccountDocument = "\n mutation updateAccount($inpu
|
|
|
850
853
|
export declare const GetMeDocument = "\n query getMe {\n getMe {\n id\n email\n name\n picture\n }\n}\n ";
|
|
851
854
|
export declare const GetAmplifyConfigDocument = "\n query getAmplifyConfig($forDev: Boolean) {\n amplifyConfig(forDev: $forDev)\n}\n ";
|
|
852
855
|
export declare const GetAuthInfoDocument = "\n query getAuthInfo {\n authInfo {\n authenticationEndpoint\n jwtIssuer\n loginUrl\n logoutUrl\n cognitoConfig {\n region\n userPoolId\n userPoolWebClientId\n }\n }\n}\n ";
|
|
853
|
-
export declare const ListGitRepositoriesDocument = "\n query listGitRepositories {\n listGitRepositories {\n ...gitRepository\n }\n}\n \n fragment gitRepository on GitRepository {\n id\n name\n branches {\n ...gitBranch\n }\n}\n \n\n fragment gitBranch on GitBranch {\n name\n}\n ";
|
|
856
|
+
export declare const ListGitRepositoriesDocument = "\n query listGitRepositories {\n listGitRepositories {\n ...gitRepository\n }\n}\n \n fragment gitRepository on GitRepository {\n id\n name\n branches {\n ...gitBranch\n }\n tags {\n ...gitTag\n }\n}\n \n\n fragment gitBranch on GitBranch {\n name\n}\n \n\n fragment gitTag on GitTag {\n name\n}\n ";
|
|
854
857
|
export declare const ListDrozServicesDocument = "\n query listDrozServices {\n listDrozServices {\n id\n name\n }\n}\n ";
|
|
855
858
|
export declare const ListGitBranchesDocument = "\n query listGitBranches($gitRepositoryId: ID!) {\n listGitBranches(gitRepositoryId: $gitRepositoryId) {\n name\n }\n}\n ";
|
|
856
859
|
export declare const ListGitTagsDocument = "\n query listGitTags($gitRepositoryId: ID!) {\n listGitTags(gitRepositoryId: $gitRepositoryId) {\n name\n }\n}\n ";
|
package/src/sdks/drozcommons.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
exports.serviceName = exports.LeaveTenantOrganizationDocument = exports.JoinTenantAsSuperAdminDocument = exports.RemoveTenantDocument = exports.UpdateTenantDocument = exports.CreateTenantDocument = void 0;
|
|
4
|
+
exports.SearchSessionsOnTenantDocument = exports.GetFederationMetadataDocument = exports.ListTenantsDocument = exports.GetTenantDocument = exports.ListServicesDocument = exports.RemoveGlobalParameterDocument = exports.SetGlobalParameterDocument = exports.RemoveAccountParameterDocument = exports.SetAccountParameterDocument = exports.RemoveTenantParameterDocument = exports.SetTenantParameterDocument = exports.GetGlobalParameterDocument = exports.ListGlobalParametersDocument = exports.GetAccountParameterDocument = exports.ListAccountParametersDocument = exports.GetTenantParameterDocument = exports.ListTenantParametersDocument = exports.BatchDeployDocument = exports.DestroyDocument = exports.DeployDocument = exports.DeploymentLogsDocument = exports.ListDeploymentsDocument = exports.GetDeploymentDocument = exports.ListGitTagsDocument = exports.ListGitBranchesDocument = exports.ListDrozServicesDocument = exports.ListGitRepositoriesDocument = exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.GetMeDocument = exports.UpdateAccountDocument = exports.ListRegionsDocument = exports.ListAccountsDocument = exports.TenantFragmentDoc = exports.ServiceFragmentDoc = exports.ParameterFragmentDoc = exports.GitRepositoryFragmentDoc = exports.GitTagFragmentDoc = exports.GitBranchFragmentDoc = exports.DeploymentFragmentDoc = exports.AwsAccountFragmentDoc = exports.RegionFragmentDoc = exports.Typenames = exports.ParameterType = exports.IdentityProviderType = exports.IdentityProviderSamlMetadataType = exports.DeploymentStatus = exports.DeploymentCommands = exports.Can = exports.AppInstanceStatus = void 0;
|
|
5
|
+
exports.serviceName = exports.LeaveTenantOrganizationDocument = exports.JoinTenantAsSuperAdminDocument = exports.RemoveTenantDocument = exports.UpdateTenantDocument = exports.CreateTenantDocument = exports.GetZendeskTicketDetailsDocument = void 0;
|
|
6
6
|
exports.getSdk = getSdk;
|
|
7
7
|
var AppInstanceStatus;
|
|
8
8
|
(function (AppInstanceStatus) {
|
|
@@ -90,6 +90,11 @@ exports.GitBranchFragmentDoc = `
|
|
|
90
90
|
name
|
|
91
91
|
}
|
|
92
92
|
`;
|
|
93
|
+
exports.GitTagFragmentDoc = `
|
|
94
|
+
fragment gitTag on GitTag {
|
|
95
|
+
name
|
|
96
|
+
}
|
|
97
|
+
`;
|
|
93
98
|
exports.GitRepositoryFragmentDoc = `
|
|
94
99
|
fragment gitRepository on GitRepository {
|
|
95
100
|
id
|
|
@@ -97,6 +102,9 @@ exports.GitRepositoryFragmentDoc = `
|
|
|
97
102
|
branches {
|
|
98
103
|
...gitBranch
|
|
99
104
|
}
|
|
105
|
+
tags {
|
|
106
|
+
...gitTag
|
|
107
|
+
}
|
|
100
108
|
}
|
|
101
109
|
`;
|
|
102
110
|
exports.ParameterFragmentDoc = `
|
|
@@ -198,7 +206,8 @@ exports.ListGitRepositoriesDocument = `
|
|
|
198
206
|
}
|
|
199
207
|
}
|
|
200
208
|
${exports.GitRepositoryFragmentDoc}
|
|
201
|
-
${exports.GitBranchFragmentDoc}
|
|
209
|
+
${exports.GitBranchFragmentDoc}
|
|
210
|
+
${exports.GitTagFragmentDoc}`;
|
|
202
211
|
exports.ListDrozServicesDocument = `
|
|
203
212
|
query listDrozServices {
|
|
204
213
|
listDrozServices {
|
package/src/sdks/logger.d.ts
CHANGED
|
@@ -153,6 +153,7 @@ export type Message = {
|
|
|
153
153
|
sender?: Maybe<Scalars['DRN']['output']>;
|
|
154
154
|
session?: Maybe<Scalars['JSON']['output']>;
|
|
155
155
|
sessionId: Scalars['ID']['output'];
|
|
156
|
+
timestamp: Scalars['DateTime']['output'];
|
|
156
157
|
type: Scalars['String']['output'];
|
|
157
158
|
};
|
|
158
159
|
export type MessageConnection = {
|
|
@@ -260,7 +261,7 @@ export declare enum Typenames {
|
|
|
260
261
|
GraphqlConnections = "GraphqlConnections",
|
|
261
262
|
GraphqlSubscriptions = "GraphqlSubscriptions"
|
|
262
263
|
}
|
|
263
|
-
export type MessageFragment = Pick<Message, 'sessionId' | 'messageId' | 'type' | 'session' | 'sender' | 'recipient' | 'payload'>;
|
|
264
|
+
export type MessageFragment = Pick<Message, 'sessionId' | 'messageId' | 'type' | 'session' | 'sender' | 'recipient' | 'payload' | 'timestamp'>;
|
|
264
265
|
export type GetLastMessageQueryVariables = Exact<{
|
|
265
266
|
sessionId: Scalars['ID']['input'];
|
|
266
267
|
type?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -274,6 +275,8 @@ export type ListMessagesQueryVariables = Exact<{
|
|
|
274
275
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
275
276
|
order?: InputMaybe<Order>;
|
|
276
277
|
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
278
|
+
before?: InputMaybe<Scalars['DateTime']['input']>;
|
|
279
|
+
after?: InputMaybe<Scalars['DateTime']['input']>;
|
|
277
280
|
}>;
|
|
278
281
|
export type ListMessagesQuery = {
|
|
279
282
|
listMessages: {
|
|
@@ -281,9 +284,9 @@ export type ListMessagesQuery = {
|
|
|
281
284
|
pageInfo: Pick<PageInfo, 'hasNext' | 'next'>;
|
|
282
285
|
};
|
|
283
286
|
};
|
|
284
|
-
export declare const MessageFragmentDoc = "\n fragment message on Message {\n sessionId\n messageId\n type\n session\n sender\n recipient\n payload\n}\n ";
|
|
285
|
-
export declare const GetLastMessageDocument = "\n query getLastMessage($sessionId: ID!, $type: String) {\n getLastMessage(sessionId: $sessionId, type: $type) {\n ...message\n }\n}\n \n fragment message on Message {\n sessionId\n messageId\n type\n session\n sender\n recipient\n payload\n}\n ";
|
|
286
|
-
export declare const ListMessagesDocument = "\n query listMessages($sessionId: ID!, $type: String, $limit: Int, $order: Order, $next: Base64) {\n listMessages(\n sessionId: $sessionId\n type: $type\n limit: $limit\n order: $order\n next: $next\n ) {\n nodes {\n ...message\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment message on Message {\n sessionId\n messageId\n type\n session\n sender\n recipient\n payload\n}\n ";
|
|
287
|
+
export declare const MessageFragmentDoc = "\n fragment message on Message {\n sessionId\n messageId\n type\n session\n sender\n recipient\n payload\n timestamp\n}\n ";
|
|
288
|
+
export declare const GetLastMessageDocument = "\n query getLastMessage($sessionId: ID!, $type: String) {\n getLastMessage(sessionId: $sessionId, type: $type) {\n ...message\n }\n}\n \n fragment message on Message {\n sessionId\n messageId\n type\n session\n sender\n recipient\n payload\n timestamp\n}\n ";
|
|
289
|
+
export declare const ListMessagesDocument = "\n query listMessages($sessionId: ID!, $type: String, $limit: Int, $order: Order, $next: Base64, $before: DateTime, $after: DateTime) {\n listMessages(\n sessionId: $sessionId\n type: $type\n limit: $limit\n order: $order\n next: $next\n before: $before\n after: $after\n ) {\n nodes {\n ...message\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment message on Message {\n sessionId\n messageId\n type\n session\n sender\n recipient\n payload\n timestamp\n}\n ";
|
|
287
290
|
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
288
291
|
export declare function getSdk<C>(requester: Requester<C>): {
|
|
289
292
|
getLastMessage(variables: GetLastMessageQueryVariables, options?: C): Promise<GetLastMessageQuery>;
|
package/src/sdks/logger.js
CHANGED
|
@@ -36,6 +36,7 @@ exports.MessageFragmentDoc = `
|
|
|
36
36
|
sender
|
|
37
37
|
recipient
|
|
38
38
|
payload
|
|
39
|
+
timestamp
|
|
39
40
|
}
|
|
40
41
|
`;
|
|
41
42
|
exports.GetLastMessageDocument = `
|
|
@@ -46,13 +47,15 @@ exports.GetLastMessageDocument = `
|
|
|
46
47
|
}
|
|
47
48
|
${exports.MessageFragmentDoc}`;
|
|
48
49
|
exports.ListMessagesDocument = `
|
|
49
|
-
query listMessages($sessionId: ID!, $type: String, $limit: Int, $order: Order, $next: Base64) {
|
|
50
|
+
query listMessages($sessionId: ID!, $type: String, $limit: Int, $order: Order, $next: Base64, $before: DateTime, $after: DateTime) {
|
|
50
51
|
listMessages(
|
|
51
52
|
sessionId: $sessionId
|
|
52
53
|
type: $type
|
|
53
54
|
limit: $limit
|
|
54
55
|
order: $order
|
|
55
56
|
next: $next
|
|
57
|
+
before: $before
|
|
58
|
+
after: $after
|
|
56
59
|
) {
|
|
57
60
|
nodes {
|
|
58
61
|
...message
|