@distilled.cloud/zendesk 1.0.0-rc.16 → 1.0.0-rc.18
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/lib/.lazy.json +1 -0
- package/lib/_bundle/lazy.js +4 -0
- package/lib/_bundle/sdk.js +2 -0
- package/lib/_bundle/sdk.js.map +1 -0
- package/lib/credentials.d.ts +2 -1
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +1 -87
- package/lib/errors.js +1 -26
- package/lib/index.d.ts +3 -3
- package/lib/index.js +1 -20
- package/lib/index.lazy.js +9 -0
- package/lib/pagination.js +1 -10
- package/lib/protocol.d.ts +2 -2
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +1 -64
- package/lib/retry.js +1 -33
- package/lib/services/index.js +0 -2
- package/lib/services/zendesk.d.ts +43 -4
- package/lib/services/zendesk.d.ts.map +1 -1
- package/lib/services/zendesk.js +916 -2106
- package/lib/services/zendesk.js.map +1 -0
- package/lib/services.lazy/index.js +3 -0
- package/lib/services.lazy/zendesk.js +4 -0
- package/lib/traits.js +1 -11
- package/package.json +9 -10
- package/src/credentials.ts +14 -13
- package/src/index.ts +3 -3
- package/src/protocol.ts +3 -2
- package/src/services/zendesk.ts +1574 -162
- package/lib/credentials.js.map +0 -1
- package/lib/errors.js.map +0 -1
- package/lib/pagination.js.map +0 -1
- package/lib/protocol.js.map +0 -1
- package/lib/retry.js.map +0 -1
- package/lib/services/index.js.map +0 -1
- package/lib/traits.js.map +0 -1
- /package/lib/{index.js.map → index.lazy.js.map} +0 -0
package/src/protocol.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as API from "@distilled.cloud/core/api";
|
|
2
|
-
import type { API_ERRORS, ConfigError } from "@distilled.cloud/core/errors";
|
|
2
|
+
import type { API_ERRORS, ConfigError, InvalidInput } from "@distilled.cloud/core/errors";
|
|
3
3
|
import { makeRestProtocol, type RestErrorEnvelope } from "@distilled.cloud/core/protocol-rest";
|
|
4
4
|
/**
|
|
5
5
|
* ZendeskProtocol -- hand-written.
|
|
@@ -36,7 +36,8 @@ export type ZendeskOpError =
|
|
|
36
36
|
| UnknownZendeskError
|
|
37
37
|
| ConfigError
|
|
38
38
|
| HttpClientError.HttpClientError
|
|
39
|
-
| ZendeskParseError
|
|
39
|
+
| ZendeskParseError
|
|
40
|
+
| InvalidInput;
|
|
40
41
|
|
|
41
42
|
/** Context (requirements) shared by every generated Zendesk operation. */
|
|
42
43
|
export type ZendeskOpContext = Credentials | HttpClient.HttpClient;
|