@dereekb/zoho 13.10.9 → 13.11.1

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.
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@dereekb/zoho/nestjs",
3
- "version": "13.10.9",
3
+ "version": "13.11.1",
4
4
  "peerDependencies": {
5
- "@dereekb/nestjs": "13.10.9",
6
- "@dereekb/rxjs": "13.10.9",
7
- "@dereekb/util": "13.10.9",
8
- "@dereekb/zoho": "13.10.9",
5
+ "@dereekb/nestjs": "13.11.1",
6
+ "@dereekb/rxjs": "13.11.1",
7
+ "@dereekb/util": "13.11.1",
8
+ "@dereekb/zoho": "13.11.1",
9
9
  "@nestjs/common": "^11.1.19",
10
10
  "@nestjs/config": "^4.0.4",
11
11
  "express": "^5.2.1"
@@ -26,6 +26,11 @@ export declare function logMergeZohoAccountsAccessTokenCacheServiceErrorFunction
26
26
  *
27
27
  * When updating a cached token, it will update the token across all services.
28
28
  *
29
+ * Read fall-through is delegated to {@link mergeAsyncValueCaches} after wrapping each
30
+ * underlying cache with an {@link isExpired}-aware filter, so an expired cached token
31
+ * never short-circuits the lookup. Updates and clears run across all services in parallel
32
+ * via `Promise.allSettled`, mirroring the previous behavior, with optional error logging.
33
+ *
29
34
  * @param servicesToMerge Must include atleast one service. Empty arrays will throw an error.
30
35
  * @param inputServicesToMerge - cache services to merge in priority order
31
36
  * @param logError - optional error logging toggle or custom logging function
@@ -35,6 +40,9 @@ export declare function mergeZohoAccountsAccessTokenCacheServices(inputServicesT
35
40
  /**
36
41
  * Creates a ZohoAccountsAccessTokenCacheService that uses in-memory storage.
37
42
  *
43
+ * Backed by {@link inMemoryAsyncKeyedValueCache} so all per-service caches share the
44
+ * same record instance.
45
+ *
38
46
  * @param existingCache - optional pre-populated token cache record to use as initial state
39
47
  * @param logAccessToConsole - whether to log cache reads and writes to the console
40
48
  * @returns a ZohoAccountsAccessTokenCacheService backed by in-memory storage
@@ -49,6 +57,9 @@ export declare const DEFAULT_FILE_ZOHO_ACCOUNTS_ACCESS_TOKEN_CACHE_SERVICE_PATH
49
57
  /**
50
58
  * Creates a ZohoAccountsAccessTokenCacheService that reads and writes the access token to the file system.
51
59
  *
60
+ * Composes {@link createJsonFileAsyncKeyedValueCache} (for the on-disk record) optionally with
61
+ * {@link memoizeAsyncKeyedValueCache} so reads after the first hit memory.
62
+ *
52
63
  * Useful for testing.
53
64
  *
54
65
  * @param filename - path to the JSON file used for token persistence
@@ -36,178 +36,266 @@ export declare class ZohoDeskApi {
36
36
  constructor(config: ZohoDeskServiceConfig, zohoAccountsApi: ZohoAccountsApi);
37
37
  /**
38
38
  * Configured pass-through for {@link zohoDeskGetTickets}.
39
+ *
40
+ * @returns a function that lists Desk tickets matching the supplied filter/pagination input
39
41
  */
40
42
  get getTickets(): import("@dereekb/zoho").ZohoDeskGetTicketsFunction;
41
43
  /**
42
44
  * Configured pass-through for {@link zohoDeskGetTicketById}.
45
+ *
46
+ * @returns a function that fetches a single Desk ticket by its identifier
43
47
  */
44
48
  get getTicketById(): import("@dereekb/zoho").ZohoDeskGetTicketByIdFunction;
45
49
  /**
46
50
  * Configured pass-through for {@link zohoDeskSearchTickets}.
51
+ *
52
+ * @returns a function that runs a Desk ticket search with the provided criteria
47
53
  */
48
54
  get searchTickets(): import("@dereekb/zoho").ZohoDeskSearchTicketsFunction;
49
55
  /**
50
56
  * Configured pass-through for {@link zohoDeskGetTicketsForContact}.
57
+ *
58
+ * @returns a function that lists Desk tickets associated with the given contact id
51
59
  */
52
60
  get getTicketsForContact(): import("@dereekb/zoho").ZohoDeskGetTicketsForContactFunction;
53
61
  /**
54
62
  * Configured pass-through for {@link zohoDeskGetTicketsForProduct}.
63
+ *
64
+ * @returns a function that lists Desk tickets associated with the given product id
55
65
  */
56
66
  get getTicketsForProduct(): import("@dereekb/zoho").ZohoDeskGetTicketsForProductFunction;
57
67
  /**
58
68
  * Configured pass-through for {@link zohoDeskGetTicketMetrics}.
69
+ *
70
+ * @returns a function that fetches aggregated metrics for the requested Desk tickets
59
71
  */
60
72
  get getTicketMetrics(): import("@dereekb/zoho").ZohoDeskGetTicketMetricsFunction;
61
73
  /**
62
74
  * Configured pass-through for {@link zohoDeskGetAgentsTicketsCount}.
75
+ *
76
+ * @returns a function that returns ticket counts grouped by agent for the requested filter
63
77
  */
64
78
  get getAgentsTicketsCount(): import("@dereekb/zoho").ZohoDeskGetAgentsTicketsCountFunction;
65
79
  /**
66
80
  * Configured pass-through for {@link zohoDeskGetTicketsPageFactory}.
81
+ *
82
+ * @returns a paged result factory for iterating over Desk ticket list responses
67
83
  */
68
84
  get getTicketsPageFactory(): import("@dereekb/zoho").ZohoDeskGetTicketsPageFactory;
69
85
  /**
70
86
  * Configured pass-through for {@link zohoDeskSearchTicketsPageFactory}.
87
+ *
88
+ * @returns a paged result factory for iterating over Desk ticket search responses
71
89
  */
72
90
  get searchTicketsPageFactory(): import("@dereekb/zoho").ZohoDeskSearchTicketsPageFactory;
73
91
  /**
74
92
  * Configured pass-through for {@link zohoDeskGetDepartments}.
93
+ *
94
+ * @returns a function that lists Desk departments visible to the authenticated portal
75
95
  */
76
96
  get getDepartments(): import("@dereekb/zoho").ZohoDeskGetDepartmentsFunction;
77
97
  /**
78
98
  * Configured pass-through for {@link zohoDeskGetDepartmentById}.
99
+ *
100
+ * @returns a function that fetches a single Desk department by its identifier
79
101
  */
80
102
  get getDepartmentById(): import("@dereekb/zoho").ZohoDeskGetDepartmentByIdFunction;
81
103
  /**
82
104
  * Configured pass-through for {@link zohoDeskGetContacts}.
105
+ *
106
+ * @returns a function that lists Desk contacts matching the supplied filter/pagination input
83
107
  */
84
108
  get getContacts(): import("@dereekb/zoho").ZohoDeskGetContactsFunction;
85
109
  /**
86
110
  * Configured pass-through for {@link zohoDeskGetContactById}.
111
+ *
112
+ * @returns a function that fetches a single Desk contact by its identifier
87
113
  */
88
114
  get getContactById(): import("@dereekb/zoho").ZohoDeskGetContactByIdFunction;
89
115
  /**
90
116
  * Configured pass-through for {@link zohoDeskGetContactsByIds}.
117
+ *
118
+ * @returns a function that fetches multiple Desk contacts in a single request by their identifiers
91
119
  */
92
120
  get getContactsByIds(): import("@dereekb/zoho").ZohoDeskGetContactsByIdsFunction;
93
121
  /**
94
122
  * Configured pass-through for {@link zohoDeskGetContactsPageFactory}.
123
+ *
124
+ * @returns a paged result factory for iterating over Desk contact list responses
95
125
  */
96
126
  get getContactsPageFactory(): import("@dereekb/zoho").ZohoDeskGetContactsPageFactory;
97
127
  /**
98
128
  * Configured pass-through for {@link zohoDeskGetTicketTags}.
129
+ *
130
+ * @returns a function that lists the tags currently associated with a given Desk ticket
99
131
  */
100
132
  get getTicketTags(): import("@dereekb/zoho").ZohoDeskGetTicketTagsFunction;
101
133
  /**
102
134
  * Configured pass-through for {@link zohoDeskAssociateTicketTags}.
135
+ *
136
+ * @returns a function that associates one or more tags with a Desk ticket
103
137
  */
104
138
  get associateTicketTags(): import("@dereekb/zoho").ZohoDeskAssociateTicketTagsFunction;
105
139
  /**
106
140
  * Configured pass-through for {@link zohoDeskDissociateTicketTag}.
141
+ *
142
+ * @returns a function that removes a single tag association from a Desk ticket
107
143
  */
108
144
  get dissociateTicketTag(): import("@dereekb/zoho").ZohoDeskDissociateTicketTagFunction;
109
145
  /**
110
146
  * Configured pass-through for {@link zohoDeskSearchTags}.
147
+ *
148
+ * @returns a function that searches the Desk tag catalog by the supplied criteria
111
149
  */
112
150
  get searchTags(): import("@dereekb/zoho").ZohoDeskSearchTagsFunction;
113
151
  /**
114
152
  * Configured pass-through for {@link zohoDeskGetAllTags}.
153
+ *
154
+ * @returns a function that lists every tag defined on the Desk portal
115
155
  */
116
156
  get getAllTags(): import("@dereekb/zoho").ZohoDeskGetAllTagsFunction;
117
157
  /**
118
158
  * Configured pass-through for {@link zohoDeskGetTicketFollowers}.
159
+ *
160
+ * @returns a function that lists the agents following a given Desk ticket
119
161
  */
120
162
  get getTicketFollowers(): import("@dereekb/zoho").ZohoDeskGetTicketFollowersFunction;
121
163
  /**
122
164
  * Configured pass-through for {@link zohoDeskAddTicketFollowers}.
165
+ *
166
+ * @returns a function that adds one or more agents as followers of a Desk ticket
123
167
  */
124
168
  get addTicketFollowers(): import("@dereekb/zoho").ZohoDeskAddTicketFollowersFunction;
125
169
  /**
126
170
  * Configured pass-through for {@link zohoDeskRemoveTicketFollowers}.
171
+ *
172
+ * @returns a function that removes one or more agents from a Desk ticket's follower list
127
173
  */
128
174
  get removeTicketFollowers(): import("@dereekb/zoho").ZohoDeskRemoveTicketFollowersFunction;
129
175
  /**
130
176
  * Configured pass-through for {@link zohoDeskGetTicketAttachments}.
177
+ *
178
+ * @returns a function that lists the file attachments on a given Desk ticket
131
179
  */
132
180
  get getTicketAttachments(): import("@dereekb/zoho").ZohoDeskGetTicketAttachmentsFunction;
133
181
  /**
134
182
  * Configured pass-through for {@link zohoDeskDeleteTicketAttachment}.
183
+ *
184
+ * @returns a function that deletes a single attachment from a Desk ticket by attachment id
135
185
  */
136
186
  get deleteTicketAttachment(): import("@dereekb/zoho").ZohoDeskDeleteTicketAttachmentFunction;
137
187
  /**
138
188
  * Configured pass-through for {@link zohoDeskGetTicketComments}.
189
+ *
190
+ * @returns a function that lists the comments on a given Desk ticket
139
191
  */
140
192
  get getTicketComments(): import("@dereekb/zoho").ZohoDeskGetTicketCommentsFunction;
141
193
  /**
142
194
  * Configured pass-through for {@link zohoDeskGetTicketCommentById}.
195
+ *
196
+ * @returns a function that fetches a single comment on a Desk ticket by comment id
143
197
  */
144
198
  get getTicketCommentById(): import("@dereekb/zoho").ZohoDeskGetTicketCommentByIdFunction;
145
199
  /**
146
200
  * Configured pass-through for {@link zohoDeskCreateTicketComment}.
201
+ *
202
+ * @returns a function that creates a new comment on a Desk ticket from the supplied body
147
203
  */
148
204
  get createTicketComment(): import("@dereekb/zoho").ZohoDeskCreateTicketCommentFunction;
149
205
  /**
150
206
  * Configured pass-through for {@link zohoDeskDeleteTicketComment}.
207
+ *
208
+ * @returns a function that deletes a single comment from a Desk ticket by comment id
151
209
  */
152
210
  get deleteTicketComment(): import("@dereekb/zoho").ZohoDeskDeleteTicketCommentFunction;
153
211
  /**
154
212
  * Configured pass-through for {@link zohoDeskGetTicketTimer}.
213
+ *
214
+ * @returns a function that fetches the current timer state for a Desk ticket
155
215
  */
156
216
  get getTicketTimer(): import("@dereekb/zoho").ZohoDeskGetTicketTimerFunction;
157
217
  /**
158
218
  * Configured pass-through for {@link zohoDeskPerformTicketTimerAction}.
219
+ *
220
+ * @returns a function that performs a timer action (start/pause/stop) on a Desk ticket
159
221
  */
160
222
  get performTicketTimerAction(): import("@dereekb/zoho").ZohoDeskPerformTicketTimerActionFunction;
161
223
  /**
162
224
  * Configured pass-through for {@link zohoDeskGetTicketTimeEntries}.
225
+ *
226
+ * @returns a function that lists the time entries logged against a Desk ticket
163
227
  */
164
228
  get getTicketTimeEntries(): import("@dereekb/zoho").ZohoDeskGetTicketTimeEntriesFunction;
165
229
  /**
166
230
  * Configured pass-through for {@link zohoDeskGetTicketTimeEntryById}.
231
+ *
232
+ * @returns a function that fetches a single time entry on a Desk ticket by entry id
167
233
  */
168
234
  get getTicketTimeEntryById(): import("@dereekb/zoho").ZohoDeskGetTicketTimeEntryByIdFunction;
169
235
  /**
170
236
  * Configured pass-through for {@link zohoDeskGetTicketTimeEntrySummation}.
237
+ *
238
+ * @returns a function that fetches the aggregated time-entry totals for a Desk ticket
171
239
  */
172
240
  get getTicketTimeEntrySummation(): import("@dereekb/zoho").ZohoDeskGetTicketTimeEntrySummationFunction;
173
241
  /**
174
242
  * Configured pass-through for {@link zohoDeskGetTicketThreads}.
243
+ *
244
+ * @returns a function that lists the conversation threads on a given Desk ticket
175
245
  */
176
246
  get getTicketThreads(): import("@dereekb/zoho").ZohoDeskGetTicketThreadsFunction;
177
247
  /**
178
248
  * Configured pass-through for {@link zohoDeskGetTicketThreadById}.
249
+ *
250
+ * @returns a function that fetches a single thread on a Desk ticket by thread id
179
251
  */
180
252
  get getTicketThreadById(): import("@dereekb/zoho").ZohoDeskGetTicketThreadByIdFunction;
181
253
  /**
182
254
  * Configured pass-through for {@link zohoDeskGetTicketThreadsPageFactory}.
255
+ *
256
+ * @returns a paged result factory for iterating over Desk ticket thread responses
183
257
  */
184
258
  get getTicketThreadsPageFactory(): import("@dereekb/zoho").ZohoDeskGetTicketThreadsPageFactory;
185
259
  /**
186
260
  * Configured pass-through for {@link zohoDeskGetTicketActivities}.
261
+ *
262
+ * @returns a function that lists the activity log entries for a given Desk ticket
187
263
  */
188
264
  get getTicketActivities(): import("@dereekb/zoho").ZohoDeskGetTicketActivitiesFunction;
189
265
  /**
190
266
  * Configured pass-through for {@link zohoDeskGetTicketActivitiesPageFactory}.
267
+ *
268
+ * @returns a paged result factory for iterating over Desk ticket activity responses
191
269
  */
192
270
  get getTicketActivitiesPageFactory(): import("@dereekb/zoho").ZohoDeskGetTicketActivitiesPageFactory;
193
271
  /**
194
272
  * Configured pass-through for {@link zohoDeskGetAgents}.
273
+ *
274
+ * @returns a function that lists Desk agents matching the supplied filter/pagination input
195
275
  */
196
276
  get getAgents(): import("@dereekb/zoho").ZohoDeskGetAgentsFunction;
197
277
  /**
198
278
  * Configured pass-through for {@link zohoDeskGetAgentById}.
279
+ *
280
+ * @returns a function that fetches a single Desk agent by agent id
199
281
  */
200
282
  get getAgentById(): import("@dereekb/zoho").ZohoDeskGetAgentByIdFunction;
201
283
  /**
202
284
  * Configured pass-through for {@link zohoDeskGetAgentsByIds}.
285
+ *
286
+ * @returns a function that fetches multiple Desk agents in a single request by their identifiers
203
287
  */
204
288
  get getAgentsByIds(): import("@dereekb/zoho").ZohoDeskGetAgentsByIdsFunction;
205
289
  /**
206
290
  * Configured pass-through for {@link zohoDeskGetMyInfo}.
291
+ *
292
+ * @returns a function that fetches the profile information for the currently authenticated agent
207
293
  */
208
294
  get getMyInfo(): import("@dereekb/zoho").ZohoDeskGetMyInfoFunction;
209
295
  /**
210
296
  * Configured pass-through for {@link zohoDeskGetAgentsPageFactory}.
297
+ *
298
+ * @returns a paged result factory for iterating over Desk agent list responses
211
299
  */
212
300
  get getAgentsPageFactory(): import("@dereekb/zoho").ZohoDeskGetAgentsPageFactory;
213
301
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/zoho",
3
- "version": "13.10.9",
3
+ "version": "13.11.1",
4
4
  "bin": {
5
5
  "zoho-cli": "cli/index.js"
6
6
  },
@@ -23,9 +23,13 @@
23
23
  }
24
24
  },
25
25
  "peerDependencies": {
26
- "@dereekb/nestjs": "13.10.9",
27
- "@dereekb/rxjs": "13.10.9",
28
- "@dereekb/util": "13.10.9",
26
+ "@dereekb/date": "13.11.1",
27
+ "@dereekb/dbx-cli": "13.11.1",
28
+ "@dereekb/firebase": "13.11.1",
29
+ "@dereekb/model": "13.11.1",
30
+ "@dereekb/nestjs": "13.11.1",
31
+ "@dereekb/rxjs": "13.11.1",
32
+ "@dereekb/util": "13.11.1",
29
33
  "@nestjs/common": "^11.1.19",
30
34
  "@nestjs/config": "^4.0.4",
31
35
  "express": "^5.2.1",