@droz-js/sdk 0.14.1 → 0.14.3
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/drozanalytics.d.ts +1 -0
- package/src/email.d.ts +7 -7
- package/src/sdks/drozanalytics.d.ts +3 -1
- package/src/sdks/drozanalytics.js +7 -2
- package/src/sdks/email.d.ts +14 -14
- package/src/sdks/email.js +14 -14
package/package.json
CHANGED
package/src/drozanalytics.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ declare const Drozanalytics_base: new (options?: import("./client/http").HttpCli
|
|
|
44
44
|
startDate: import("./sdks/drozanalytics").Scalars["Date"]["input"];
|
|
45
45
|
endDate: import("./sdks/drozanalytics").Scalars["Date"]["input"];
|
|
46
46
|
filters?: import("./sdks/drozanalytics").InputMaybe<Array<import("./sdks/drozanalytics").TicketAnalyticsFilterInput> | import("./sdks/drozanalytics").TicketAnalyticsFilterInput>;
|
|
47
|
+
type: import("./sdks/drozanalytics").AnalyticsType;
|
|
47
48
|
}>, options?: unknown): Promise<import("./sdks/drozanalytics").GetTicketsReviewsQuery>;
|
|
48
49
|
getFacets(variables: import("./sdks/drozanalytics").Exact<{
|
|
49
50
|
startDate: import("./sdks/drozanalytics").Scalars["Date"]["input"];
|
package/src/email.d.ts
CHANGED
|
@@ -6,25 +6,25 @@ declare const Email_base: new (options?: import("./client/http").HttpClientOptio
|
|
|
6
6
|
withCustomHeaders(headers: () => Record<string, string>): /*elided*/ any;
|
|
7
7
|
withHttpRequestExecutor(httpRequestExecutor: import("./client/http").HttpRequestExecutor): /*elided*/ any;
|
|
8
8
|
} & {
|
|
9
|
-
|
|
9
|
+
getEmailInstance(variables: import("./sdks/email").Exact<{
|
|
10
10
|
id: import("./sdks/email").Scalars["ID"]["input"];
|
|
11
11
|
}>, options?: unknown): Promise<import("./sdks/email").GetEmailInstanceQuery>;
|
|
12
|
-
|
|
12
|
+
listEmailInstances(variables?: import("./sdks/email").Exact<{
|
|
13
13
|
[key: string]: never;
|
|
14
14
|
}>, options?: unknown): Promise<import("./sdks/email").ListEmailInstancesQuery>;
|
|
15
|
-
|
|
15
|
+
createEmailInstance(variables: import("./sdks/email").Exact<{
|
|
16
16
|
input: import("./sdks/email").CreateEmailInstanceInput;
|
|
17
17
|
}>, options?: unknown): Promise<import("./sdks/email").CreateEmailInstanceMutation>;
|
|
18
|
-
|
|
18
|
+
updateEmailInstance(variables: import("./sdks/email").Exact<{
|
|
19
19
|
input: import("./sdks/email").UpdateEmailInstanceInput;
|
|
20
20
|
}>, options?: unknown): Promise<import("./sdks/email").UpdateEmailInstanceMutation>;
|
|
21
|
-
|
|
21
|
+
removeEmailInstance(variables: import("./sdks/email").Exact<{
|
|
22
22
|
input: import("./sdks/email").RemoveEmailInstanceInput;
|
|
23
23
|
}>, options?: unknown): Promise<import("./sdks/email").RemoveEmailInstanceMutation>;
|
|
24
|
-
|
|
24
|
+
validateInstanceDomain(variables: import("./sdks/email").Exact<{
|
|
25
25
|
input: import("./sdks/email").ValidateInstanceDomainInput;
|
|
26
26
|
}>, options?: unknown): Promise<import("./sdks/email").ValidateInstanceDomainMutation>;
|
|
27
|
-
|
|
27
|
+
listThreadingBySessionId(variables: import("./sdks/email").Exact<{
|
|
28
28
|
sessionId: import("./sdks/email").Scalars["ID"]["input"];
|
|
29
29
|
}>, options?: unknown): Promise<import("./sdks/email").ListThreadingBySessionIdQuery>;
|
|
30
30
|
};
|
|
@@ -261,6 +261,7 @@ export type QueryGetTicketsReviewsArgs = {
|
|
|
261
261
|
endDate: Scalars['Date']['input'];
|
|
262
262
|
filters?: InputMaybe<Array<TicketAnalyticsFilterInput>>;
|
|
263
263
|
startDate: Scalars['Date']['input'];
|
|
264
|
+
type: AnalyticsType;
|
|
264
265
|
};
|
|
265
266
|
export type QueryGetTicketsReviewsSurveyRatingVolumeArgs = {
|
|
266
267
|
endDate: Scalars['Date']['input'];
|
|
@@ -425,6 +426,7 @@ export type GetTicketsReviewsQueryVariables = Exact<{
|
|
|
425
426
|
startDate: Scalars['Date']['input'];
|
|
426
427
|
endDate: Scalars['Date']['input'];
|
|
427
428
|
filters?: InputMaybe<Array<TicketAnalyticsFilterInput> | TicketAnalyticsFilterInput>;
|
|
429
|
+
type: AnalyticsType;
|
|
428
430
|
}>;
|
|
429
431
|
export type GetTicketsReviewsQuery = {
|
|
430
432
|
getTicketsReviews?: Maybe<AverageFragment>;
|
|
@@ -459,7 +461,7 @@ export declare const GetVolumeOfTicketsPerDayDocument = "\n query getVolumeOf
|
|
|
459
461
|
export declare const GetVolumeOfTicketsPerHourDocument = "\n query getVolumeOfTicketsPerHour($date: Date!, $filters: [TicketAnalyticsFilterInput!]) {\n getVolumeOfTicketsPerHour(date: $date, filters: $filters) {\n name\n value\n }\n}\n ";
|
|
460
462
|
export declare const GetVolumeOfTicketsReviewsDocument = "\n query getVolumeOfTicketsReviews($startDate: Date!, $endDate: Date!, $filters: [TicketAnalyticsFilterInput!]) {\n getVolumeOfTicketsReviews(\n startDate: $startDate\n endDate: $endDate\n filters: $filters\n ) {\n ...volume\n }\n}\n \n fragment volume on AnalyticsVolume {\n delta\n total\n prevTotal\n data {\n name\n value\n }\n}\n ";
|
|
461
463
|
export declare const GetTicketsByTriggerAppDocument = "\n query getTicketsByTriggerApp($startDate: Date!, $endDate: Date!, $filters: [TicketAnalyticsFilterInput!]) {\n getTicketsByTriggerApp(\n startDate: $startDate\n endDate: $endDate\n filters: $filters\n ) {\n ...chart\n }\n}\n \n fragment chart on AnalyticsChart {\n delta\n current\n previous\n name\n}\n ";
|
|
462
|
-
export declare const GetTicketsReviewsDocument = "\n query getTicketsReviews($startDate: Date!, $endDate: Date!, $filters: [TicketAnalyticsFilterInput!]) {\n getTicketsReviews(startDate: $startDate
|
|
464
|
+
export declare const GetTicketsReviewsDocument = "\n query getTicketsReviews($startDate: Date!, $endDate: Date!, $filters: [TicketAnalyticsFilterInput!], $type: AnalyticsType!) {\n getTicketsReviews(\n startDate: $startDate\n endDate: $endDate\n filters: $filters\n type: $type\n ) {\n ...average\n }\n}\n \n fragment average on AnalyticsAverage {\n delta\n current\n previous\n}\n ";
|
|
463
465
|
export declare const GetFacetsDocument = "\n query getFacets($startDate: Date!, $endDate: Date!, $filters: [TicketAnalyticsFilterInput!]) {\n getFacets(startDate: $startDate, endDate: $endDate, filters: $filters) {\n ...queryFacets\n }\n}\n \n fragment queryFacets on AnalyticsFacets {\n channelId {\n ...facetValue\n }\n customerId {\n ...facetValue\n }\n assigneeId {\n ...facetValue\n }\n status {\n ...facetValue\n }\n tags {\n ...facetValue\n }\n triggerApp {\n ...facetValue\n }\n}\n \n\n fragment facetValue on AnalyticsFacetValue {\n value\n display\n count\n}\n ";
|
|
464
466
|
export declare const GetTicketsReviewsSurveyRatingVolumeDocument = "\n query getTicketsReviewsSurveyRatingVolume($startDate: Date!, $endDate: Date!, $filters: [TicketAnalyticsFilterInput!], $type: AnalyticsType!) {\n getTicketsReviewsSurveyRatingVolume(\n startDate: $startDate\n endDate: $endDate\n filters: $filters\n type: $type\n ) {\n name\n value\n }\n}\n ";
|
|
465
467
|
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
@@ -164,8 +164,13 @@ exports.GetTicketsByTriggerAppDocument = `
|
|
|
164
164
|
}
|
|
165
165
|
${exports.ChartFragmentDoc}`;
|
|
166
166
|
exports.GetTicketsReviewsDocument = `
|
|
167
|
-
query getTicketsReviews($startDate: Date!, $endDate: Date!, $filters: [TicketAnalyticsFilterInput!]) {
|
|
168
|
-
getTicketsReviews(
|
|
167
|
+
query getTicketsReviews($startDate: Date!, $endDate: Date!, $filters: [TicketAnalyticsFilterInput!], $type: AnalyticsType!) {
|
|
168
|
+
getTicketsReviews(
|
|
169
|
+
startDate: $startDate
|
|
170
|
+
endDate: $endDate
|
|
171
|
+
filters: $filters
|
|
172
|
+
type: $type
|
|
173
|
+
) {
|
|
169
174
|
...average
|
|
170
175
|
}
|
|
171
176
|
}
|
package/src/sdks/email.d.ts
CHANGED
|
@@ -403,22 +403,22 @@ export declare const EmailInstanceFieldsFragmentDoc = "\n fragment emailInsta
|
|
|
403
403
|
export declare const EmailAttachmentMetadataFieldsFragmentDoc = "\n fragment emailAttachmentMetadataFields on EmailAttachmentMetadata {\n sourceId\n filename\n mime\n size\n checksum\n url\n origin\n}\n ";
|
|
404
404
|
export declare const EmailThreadRootFieldsFragmentDoc = "\n fragment emailThreadRootFields on EmailThreadRoot {\n messageId\n sessionId\n instanceId\n direction\n status\n subject\n attachments {\n ...emailAttachmentMetadataFields\n }\n createdAt\n updatedAt\n}\n ";
|
|
405
405
|
export declare const EmailThreadReplyFieldsFragmentDoc = "\n fragment emailThreadReplyFields on EmailThreadReply {\n id\n replyId\n messageId\n direction\n status\n attachments {\n ...emailAttachmentMetadataFields\n }\n createdAt\n updatedAt\n}\n ";
|
|
406
|
-
export declare const GetEmailInstanceDocument = "\n query
|
|
407
|
-
export declare const ListEmailInstancesDocument = "\n query
|
|
408
|
-
export declare const CreateEmailInstanceDocument = "\n mutation
|
|
409
|
-
export declare const UpdateEmailInstanceDocument = "\n mutation
|
|
410
|
-
export declare const RemoveEmailInstanceDocument = "\n mutation
|
|
411
|
-
export declare const ValidateInstanceDomainDocument = "\n mutation
|
|
412
|
-
export declare const ListThreadingBySessionIdDocument = "\n query
|
|
406
|
+
export declare const GetEmailInstanceDocument = "\n query getEmailInstance($id: ID!) {\n getEmailInstance(id: $id) {\n ...emailInstanceFields\n }\n}\n \n fragment emailInstanceFields on EmailInstance {\n id\n name\n drn\n credentialId\n senderEmail\n senderName\n domain\n subdomain\n dns {\n mailCname {\n type\n host\n data\n }\n dkim1 {\n type\n host\n data\n }\n dkim2 {\n type\n host\n data\n }\n }\n status\n failingReason\n createdAt\n updatedAt\n}\n ";
|
|
407
|
+
export declare const ListEmailInstancesDocument = "\n query listEmailInstances {\n listEmailInstances {\n ...emailInstanceFields\n }\n}\n \n fragment emailInstanceFields on EmailInstance {\n id\n name\n drn\n credentialId\n senderEmail\n senderName\n domain\n subdomain\n dns {\n mailCname {\n type\n host\n data\n }\n dkim1 {\n type\n host\n data\n }\n dkim2 {\n type\n host\n data\n }\n }\n status\n failingReason\n createdAt\n updatedAt\n}\n ";
|
|
408
|
+
export declare const CreateEmailInstanceDocument = "\n mutation createEmailInstance($input: CreateEmailInstanceInput!) {\n createEmailInstance(input: $input) {\n ...emailInstanceFields\n }\n}\n \n fragment emailInstanceFields on EmailInstance {\n id\n name\n drn\n credentialId\n senderEmail\n senderName\n domain\n subdomain\n dns {\n mailCname {\n type\n host\n data\n }\n dkim1 {\n type\n host\n data\n }\n dkim2 {\n type\n host\n data\n }\n }\n status\n failingReason\n createdAt\n updatedAt\n}\n ";
|
|
409
|
+
export declare const UpdateEmailInstanceDocument = "\n mutation updateEmailInstance($input: UpdateEmailInstanceInput!) {\n updateEmailInstance(input: $input) {\n ...emailInstanceFields\n }\n}\n \n fragment emailInstanceFields on EmailInstance {\n id\n name\n drn\n credentialId\n senderEmail\n senderName\n domain\n subdomain\n dns {\n mailCname {\n type\n host\n data\n }\n dkim1 {\n type\n host\n data\n }\n dkim2 {\n type\n host\n data\n }\n }\n status\n failingReason\n createdAt\n updatedAt\n}\n ";
|
|
410
|
+
export declare const RemoveEmailInstanceDocument = "\n mutation removeEmailInstance($input: RemoveEmailInstanceInput!) {\n removeEmailInstance(input: $input)\n}\n ";
|
|
411
|
+
export declare const ValidateInstanceDomainDocument = "\n mutation validateInstanceDomain($input: ValidateInstanceDomainInput!) {\n validateInstanceDomain(input: $input)\n}\n ";
|
|
412
|
+
export declare const ListThreadingBySessionIdDocument = "\n query listThreadingBySessionId($sessionId: ID!) {\n listThreadingBySessionId(sessionId: $sessionId) {\n root {\n ...emailThreadRootFields\n }\n replies {\n ...emailThreadReplyFields\n }\n }\n}\n \n fragment emailThreadRootFields on EmailThreadRoot {\n messageId\n sessionId\n instanceId\n direction\n status\n subject\n attachments {\n ...emailAttachmentMetadataFields\n }\n createdAt\n updatedAt\n}\n \n\n fragment emailAttachmentMetadataFields on EmailAttachmentMetadata {\n sourceId\n filename\n mime\n size\n checksum\n url\n origin\n}\n \n\n fragment emailThreadReplyFields on EmailThreadReply {\n id\n replyId\n messageId\n direction\n status\n attachments {\n ...emailAttachmentMetadataFields\n }\n createdAt\n updatedAt\n}\n ";
|
|
413
413
|
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
414
414
|
export declare function getSdk<C>(requester: Requester<C>): {
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
415
|
+
getEmailInstance(variables: GetEmailInstanceQueryVariables, options?: C): Promise<GetEmailInstanceQuery>;
|
|
416
|
+
listEmailInstances(variables?: ListEmailInstancesQueryVariables, options?: C): Promise<ListEmailInstancesQuery>;
|
|
417
|
+
createEmailInstance(variables: CreateEmailInstanceMutationVariables, options?: C): Promise<CreateEmailInstanceMutation>;
|
|
418
|
+
updateEmailInstance(variables: UpdateEmailInstanceMutationVariables, options?: C): Promise<UpdateEmailInstanceMutation>;
|
|
419
|
+
removeEmailInstance(variables: RemoveEmailInstanceMutationVariables, options?: C): Promise<RemoveEmailInstanceMutation>;
|
|
420
|
+
validateInstanceDomain(variables: ValidateInstanceDomainMutationVariables, options?: C): Promise<ValidateInstanceDomainMutation>;
|
|
421
|
+
listThreadingBySessionId(variables: ListThreadingBySessionIdQueryVariables, options?: C): Promise<ListThreadingBySessionIdQuery>;
|
|
422
422
|
};
|
|
423
423
|
export type Sdk = ReturnType<typeof getSdk>;
|
|
424
424
|
export declare const serviceName = "@droz/email";
|
package/src/sdks/email.js
CHANGED
|
@@ -113,45 +113,45 @@ exports.EmailThreadReplyFieldsFragmentDoc = `
|
|
|
113
113
|
}
|
|
114
114
|
`;
|
|
115
115
|
exports.GetEmailInstanceDocument = `
|
|
116
|
-
query
|
|
116
|
+
query getEmailInstance($id: ID!) {
|
|
117
117
|
getEmailInstance(id: $id) {
|
|
118
118
|
...emailInstanceFields
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
${exports.EmailInstanceFieldsFragmentDoc}`;
|
|
122
122
|
exports.ListEmailInstancesDocument = `
|
|
123
|
-
query
|
|
123
|
+
query listEmailInstances {
|
|
124
124
|
listEmailInstances {
|
|
125
125
|
...emailInstanceFields
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
${exports.EmailInstanceFieldsFragmentDoc}`;
|
|
129
129
|
exports.CreateEmailInstanceDocument = `
|
|
130
|
-
mutation
|
|
130
|
+
mutation createEmailInstance($input: CreateEmailInstanceInput!) {
|
|
131
131
|
createEmailInstance(input: $input) {
|
|
132
132
|
...emailInstanceFields
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
${exports.EmailInstanceFieldsFragmentDoc}`;
|
|
136
136
|
exports.UpdateEmailInstanceDocument = `
|
|
137
|
-
mutation
|
|
137
|
+
mutation updateEmailInstance($input: UpdateEmailInstanceInput!) {
|
|
138
138
|
updateEmailInstance(input: $input) {
|
|
139
139
|
...emailInstanceFields
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
${exports.EmailInstanceFieldsFragmentDoc}`;
|
|
143
143
|
exports.RemoveEmailInstanceDocument = `
|
|
144
|
-
mutation
|
|
144
|
+
mutation removeEmailInstance($input: RemoveEmailInstanceInput!) {
|
|
145
145
|
removeEmailInstance(input: $input)
|
|
146
146
|
}
|
|
147
147
|
`;
|
|
148
148
|
exports.ValidateInstanceDomainDocument = `
|
|
149
|
-
mutation
|
|
149
|
+
mutation validateInstanceDomain($input: ValidateInstanceDomainInput!) {
|
|
150
150
|
validateInstanceDomain(input: $input)
|
|
151
151
|
}
|
|
152
152
|
`;
|
|
153
153
|
exports.ListThreadingBySessionIdDocument = `
|
|
154
|
-
query
|
|
154
|
+
query listThreadingBySessionId($sessionId: ID!) {
|
|
155
155
|
listThreadingBySessionId(sessionId: $sessionId) {
|
|
156
156
|
root {
|
|
157
157
|
...emailThreadRootFields
|
|
@@ -166,25 +166,25 @@ ${exports.EmailAttachmentMetadataFieldsFragmentDoc}
|
|
|
166
166
|
${exports.EmailThreadReplyFieldsFragmentDoc}`;
|
|
167
167
|
function getSdk(requester) {
|
|
168
168
|
return {
|
|
169
|
-
|
|
169
|
+
getEmailInstance(variables, options) {
|
|
170
170
|
return requester(exports.GetEmailInstanceDocument, variables, options);
|
|
171
171
|
},
|
|
172
|
-
|
|
172
|
+
listEmailInstances(variables, options) {
|
|
173
173
|
return requester(exports.ListEmailInstancesDocument, variables, options);
|
|
174
174
|
},
|
|
175
|
-
|
|
175
|
+
createEmailInstance(variables, options) {
|
|
176
176
|
return requester(exports.CreateEmailInstanceDocument, variables, options);
|
|
177
177
|
},
|
|
178
|
-
|
|
178
|
+
updateEmailInstance(variables, options) {
|
|
179
179
|
return requester(exports.UpdateEmailInstanceDocument, variables, options);
|
|
180
180
|
},
|
|
181
|
-
|
|
181
|
+
removeEmailInstance(variables, options) {
|
|
182
182
|
return requester(exports.RemoveEmailInstanceDocument, variables, options);
|
|
183
183
|
},
|
|
184
|
-
|
|
184
|
+
validateInstanceDomain(variables, options) {
|
|
185
185
|
return requester(exports.ValidateInstanceDomainDocument, variables, options);
|
|
186
186
|
},
|
|
187
|
-
|
|
187
|
+
listThreadingBySessionId(variables, options) {
|
|
188
188
|
return requester(exports.ListThreadingBySessionIdDocument, variables, options);
|
|
189
189
|
}
|
|
190
190
|
};
|