eat518 1.0.0
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/CHANGELOG.md +10 -0
- package/LICENSE +201 -0
- package/README.md +391 -0
- package/api-promise.d.mts +2 -0
- package/api-promise.d.mts.map +1 -0
- package/api-promise.d.ts +2 -0
- package/api-promise.d.ts.map +1 -0
- package/api-promise.js +6 -0
- package/api-promise.js.map +1 -0
- package/api-promise.mjs +2 -0
- package/api-promise.mjs.map +1 -0
- package/client.d.mts +180 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +180 -0
- package/client.d.ts.map +1 -0
- package/client.js +461 -0
- package/client.js.map +1 -0
- package/client.mjs +457 -0
- package/client.mjs.map +1 -0
- package/core/api-promise.d.mts +46 -0
- package/core/api-promise.d.mts.map +1 -0
- package/core/api-promise.d.ts +46 -0
- package/core/api-promise.d.ts.map +1 -0
- package/core/api-promise.js +74 -0
- package/core/api-promise.js.map +1 -0
- package/core/api-promise.mjs +70 -0
- package/core/api-promise.mjs.map +1 -0
- package/core/error.d.mts +46 -0
- package/core/error.d.mts.map +1 -0
- package/core/error.d.ts +46 -0
- package/core/error.d.ts.map +1 -0
- package/core/error.js +113 -0
- package/core/error.js.map +1 -0
- package/core/error.mjs +97 -0
- package/core/error.mjs.map +1 -0
- package/core/resource.d.mts +6 -0
- package/core/resource.d.mts.map +1 -0
- package/core/resource.d.ts +6 -0
- package/core/resource.d.ts.map +1 -0
- package/core/resource.js +11 -0
- package/core/resource.js.map +1 -0
- package/core/resource.mjs +7 -0
- package/core/resource.mjs.map +1 -0
- package/core/uploads.d.mts +3 -0
- package/core/uploads.d.mts.map +1 -0
- package/core/uploads.d.ts +3 -0
- package/core/uploads.d.ts.map +1 -0
- package/core/uploads.js +6 -0
- package/core/uploads.js.map +1 -0
- package/core/uploads.mjs +2 -0
- package/core/uploads.mjs.map +1 -0
- package/error.d.mts +2 -0
- package/error.d.mts.map +1 -0
- package/error.d.ts +2 -0
- package/error.d.ts.map +1 -0
- package/error.js +6 -0
- package/error.js.map +1 -0
- package/error.mjs +2 -0
- package/error.mjs.map +1 -0
- package/index.d.mts +6 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +6 -0
- package/index.d.ts.map +1 -0
- package/index.js +30 -0
- package/index.js.map +1 -0
- package/index.mjs +7 -0
- package/index.mjs.map +1 -0
- package/internal/builtin-types.d.mts +73 -0
- package/internal/builtin-types.d.mts.map +1 -0
- package/internal/builtin-types.d.ts +73 -0
- package/internal/builtin-types.d.ts.map +1 -0
- package/internal/builtin-types.js +4 -0
- package/internal/builtin-types.js.map +1 -0
- package/internal/builtin-types.mjs +3 -0
- package/internal/builtin-types.mjs.map +1 -0
- package/internal/detect-platform.d.mts +15 -0
- package/internal/detect-platform.d.mts.map +1 -0
- package/internal/detect-platform.d.ts +15 -0
- package/internal/detect-platform.d.ts.map +1 -0
- package/internal/detect-platform.js +162 -0
- package/internal/detect-platform.js.map +1 -0
- package/internal/detect-platform.mjs +157 -0
- package/internal/detect-platform.mjs.map +1 -0
- package/internal/errors.d.mts +3 -0
- package/internal/errors.d.mts.map +1 -0
- package/internal/errors.d.ts +3 -0
- package/internal/errors.d.ts.map +1 -0
- package/internal/errors.js +41 -0
- package/internal/errors.js.map +1 -0
- package/internal/errors.mjs +36 -0
- package/internal/errors.mjs.map +1 -0
- package/internal/headers.d.mts +20 -0
- package/internal/headers.d.mts.map +1 -0
- package/internal/headers.d.ts +20 -0
- package/internal/headers.d.ts.map +1 -0
- package/internal/headers.js +79 -0
- package/internal/headers.js.map +1 -0
- package/internal/headers.mjs +74 -0
- package/internal/headers.mjs.map +1 -0
- package/internal/parse.d.mts +12 -0
- package/internal/parse.d.mts.map +1 -0
- package/internal/parse.d.ts +12 -0
- package/internal/parse.d.ts.map +1 -0
- package/internal/parse.js +35 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +32 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/request-options.d.mts +75 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +75 -0
- package/internal/request-options.d.ts.map +1 -0
- package/internal/request-options.js +14 -0
- package/internal/request-options.js.map +1 -0
- package/internal/request-options.mjs +10 -0
- package/internal/request-options.mjs.map +1 -0
- package/internal/shim-types.d.mts +17 -0
- package/internal/shim-types.d.mts.map +1 -0
- package/internal/shim-types.d.ts +17 -0
- package/internal/shim-types.d.ts.map +1 -0
- package/internal/shim-types.js +4 -0
- package/internal/shim-types.js.map +1 -0
- package/internal/shim-types.mjs +3 -0
- package/internal/shim-types.mjs.map +1 -0
- package/internal/shims.d.mts +20 -0
- package/internal/shims.d.mts.map +1 -0
- package/internal/shims.d.ts +20 -0
- package/internal/shims.d.ts.map +1 -0
- package/internal/shims.js +92 -0
- package/internal/shims.js.map +1 -0
- package/internal/shims.mjs +85 -0
- package/internal/shims.mjs.map +1 -0
- package/internal/to-file.d.mts +45 -0
- package/internal/to-file.d.mts.map +1 -0
- package/internal/to-file.d.ts +45 -0
- package/internal/to-file.d.ts.map +1 -0
- package/internal/to-file.js +91 -0
- package/internal/to-file.js.map +1 -0
- package/internal/to-file.mjs +88 -0
- package/internal/to-file.mjs.map +1 -0
- package/internal/tslib.js +81 -0
- package/internal/tslib.mjs +17 -0
- package/internal/types.d.mts +69 -0
- package/internal/types.d.mts.map +1 -0
- package/internal/types.d.ts +69 -0
- package/internal/types.d.ts.map +1 -0
- package/internal/types.js +4 -0
- package/internal/types.js.map +1 -0
- package/internal/types.mjs +3 -0
- package/internal/types.mjs.map +1 -0
- package/internal/uploads.d.mts +42 -0
- package/internal/uploads.d.mts.map +1 -0
- package/internal/uploads.d.ts +42 -0
- package/internal/uploads.d.ts.map +1 -0
- package/internal/uploads.js +141 -0
- package/internal/uploads.js.map +1 -0
- package/internal/uploads.mjs +131 -0
- package/internal/uploads.mjs.map +1 -0
- package/internal/utils/base64.d.mts +3 -0
- package/internal/utils/base64.d.mts.map +1 -0
- package/internal/utils/base64.d.ts +3 -0
- package/internal/utils/base64.d.ts.map +1 -0
- package/internal/utils/base64.js +38 -0
- package/internal/utils/base64.js.map +1 -0
- package/internal/utils/base64.mjs +33 -0
- package/internal/utils/base64.mjs.map +1 -0
- package/internal/utils/bytes.d.mts +4 -0
- package/internal/utils/bytes.d.mts.map +1 -0
- package/internal/utils/bytes.d.ts +4 -0
- package/internal/utils/bytes.d.ts.map +1 -0
- package/internal/utils/bytes.js +31 -0
- package/internal/utils/bytes.js.map +1 -0
- package/internal/utils/bytes.mjs +26 -0
- package/internal/utils/bytes.mjs.map +1 -0
- package/internal/utils/env.d.mts +9 -0
- package/internal/utils/env.d.mts.map +1 -0
- package/internal/utils/env.d.ts +9 -0
- package/internal/utils/env.d.ts.map +1 -0
- package/internal/utils/env.js +22 -0
- package/internal/utils/env.js.map +1 -0
- package/internal/utils/env.mjs +18 -0
- package/internal/utils/env.mjs.map +1 -0
- package/internal/utils/log.d.mts +37 -0
- package/internal/utils/log.d.mts.map +1 -0
- package/internal/utils/log.d.ts +37 -0
- package/internal/utils/log.d.ts.map +1 -0
- package/internal/utils/log.js +85 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +79 -0
- package/internal/utils/log.mjs.map +1 -0
- package/internal/utils/path.d.mts +15 -0
- package/internal/utils/path.d.mts.map +1 -0
- package/internal/utils/path.d.ts +15 -0
- package/internal/utils/path.d.ts.map +1 -0
- package/internal/utils/path.js +79 -0
- package/internal/utils/path.js.map +1 -0
- package/internal/utils/path.mjs +74 -0
- package/internal/utils/path.mjs.map +1 -0
- package/internal/utils/sleep.d.mts +2 -0
- package/internal/utils/sleep.d.mts.map +1 -0
- package/internal/utils/sleep.d.ts +2 -0
- package/internal/utils/sleep.d.ts.map +1 -0
- package/internal/utils/sleep.js +7 -0
- package/internal/utils/sleep.js.map +1 -0
- package/internal/utils/sleep.mjs +3 -0
- package/internal/utils/sleep.mjs.map +1 -0
- package/internal/utils/uuid.d.mts +5 -0
- package/internal/utils/uuid.d.mts.map +1 -0
- package/internal/utils/uuid.d.ts +5 -0
- package/internal/utils/uuid.d.ts.map +1 -0
- package/internal/utils/uuid.js +19 -0
- package/internal/utils/uuid.js.map +1 -0
- package/internal/utils/uuid.mjs +15 -0
- package/internal/utils/uuid.mjs.map +1 -0
- package/internal/utils/values.d.mts +18 -0
- package/internal/utils/values.d.mts.map +1 -0
- package/internal/utils/values.d.ts +18 -0
- package/internal/utils/values.d.ts.map +1 -0
- package/internal/utils/values.js +112 -0
- package/internal/utils/values.js.map +1 -0
- package/internal/utils/values.mjs +94 -0
- package/internal/utils/values.mjs.map +1 -0
- package/internal/utils.d.mts +7 -0
- package/internal/utils.d.mts.map +1 -0
- package/internal/utils.d.ts +7 -0
- package/internal/utils.d.ts.map +1 -0
- package/internal/utils.js +11 -0
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +8 -0
- package/internal/utils.mjs.map +1 -0
- package/package.json +138 -0
- package/resource.d.mts +2 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +2 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +6 -0
- package/resource.js.map +1 -0
- package/resource.mjs +2 -0
- package/resource.mjs.map +1 -0
- package/resources/customer/businesses.d.mts +260 -0
- package/resources/customer/businesses.d.mts.map +1 -0
- package/resources/customer/businesses.d.ts +260 -0
- package/resources/customer/businesses.d.ts.map +1 -0
- package/resources/customer/businesses.js +77 -0
- package/resources/customer/businesses.js.map +1 -0
- package/resources/customer/businesses.mjs +73 -0
- package/resources/customer/businesses.mjs.map +1 -0
- package/resources/customer/channels.d.mts +34 -0
- package/resources/customer/channels.d.mts.map +1 -0
- package/resources/customer/channels.d.ts +34 -0
- package/resources/customer/channels.d.ts.map +1 -0
- package/resources/customer/channels.js +25 -0
- package/resources/customer/channels.js.map +1 -0
- package/resources/customer/channels.mjs +21 -0
- package/resources/customer/channels.mjs.map +1 -0
- package/resources/customer/customer.d.mts +151 -0
- package/resources/customer/customer.d.mts.map +1 -0
- package/resources/customer/customer.d.ts +151 -0
- package/resources/customer/customer.d.ts.map +1 -0
- package/resources/customer/customer.js +104 -0
- package/resources/customer/customer.js.map +1 -0
- package/resources/customer/customer.mjs +99 -0
- package/resources/customer/customer.mjs.map +1 -0
- package/resources/customer/discovery/category.d.mts +84 -0
- package/resources/customer/discovery/category.d.mts.map +1 -0
- package/resources/customer/discovery/category.d.ts +84 -0
- package/resources/customer/discovery/category.d.ts.map +1 -0
- package/resources/customer/discovery/category.js +25 -0
- package/resources/customer/discovery/category.js.map +1 -0
- package/resources/customer/discovery/category.mjs +21 -0
- package/resources/customer/discovery/category.mjs.map +1 -0
- package/resources/customer/discovery/discovery.d.mts +34 -0
- package/resources/customer/discovery/discovery.d.mts.map +1 -0
- package/resources/customer/discovery/discovery.d.ts +34 -0
- package/resources/customer/discovery/discovery.d.ts.map +1 -0
- package/resources/customer/discovery/discovery.js +30 -0
- package/resources/customer/discovery/discovery.js.map +1 -0
- package/resources/customer/discovery/discovery.mjs +25 -0
- package/resources/customer/discovery/discovery.mjs.map +1 -0
- package/resources/customer/discovery/index.d.mts +3 -0
- package/resources/customer/discovery/index.d.mts.map +1 -0
- package/resources/customer/discovery/index.d.ts +3 -0
- package/resources/customer/discovery/index.d.ts.map +1 -0
- package/resources/customer/discovery/index.js +9 -0
- package/resources/customer/discovery/index.js.map +1 -0
- package/resources/customer/discovery/index.mjs +4 -0
- package/resources/customer/discovery/index.mjs.map +1 -0
- package/resources/customer/discovery.d.mts +2 -0
- package/resources/customer/discovery.d.mts.map +1 -0
- package/resources/customer/discovery.d.ts +2 -0
- package/resources/customer/discovery.d.ts.map +1 -0
- package/resources/customer/discovery.js +6 -0
- package/resources/customer/discovery.js.map +1 -0
- package/resources/customer/discovery.mjs +3 -0
- package/resources/customer/discovery.mjs.map +1 -0
- package/resources/customer/explore.d.mts +59 -0
- package/resources/customer/explore.d.mts.map +1 -0
- package/resources/customer/explore.d.ts +59 -0
- package/resources/customer/explore.d.ts.map +1 -0
- package/resources/customer/explore.js +24 -0
- package/resources/customer/explore.js.map +1 -0
- package/resources/customer/explore.mjs +20 -0
- package/resources/customer/explore.mjs.map +1 -0
- package/resources/customer/index.d.mts +8 -0
- package/resources/customer/index.d.mts.map +1 -0
- package/resources/customer/index.d.ts +8 -0
- package/resources/customer/index.d.ts.map +1 -0
- package/resources/customer/index.js +19 -0
- package/resources/customer/index.js.map +1 -0
- package/resources/customer/index.mjs +9 -0
- package/resources/customer/index.mjs.map +1 -0
- package/resources/customer/messaging/conversations/conversations.d.mts +106 -0
- package/resources/customer/messaging/conversations/conversations.d.mts.map +1 -0
- package/resources/customer/messaging/conversations/conversations.d.ts +106 -0
- package/resources/customer/messaging/conversations/conversations.d.ts.map +1 -0
- package/resources/customer/messaging/conversations/conversations.js +77 -0
- package/resources/customer/messaging/conversations/conversations.js.map +1 -0
- package/resources/customer/messaging/conversations/conversations.mjs +72 -0
- package/resources/customer/messaging/conversations/conversations.mjs.map +1 -0
- package/resources/customer/messaging/conversations/index.d.mts +3 -0
- package/resources/customer/messaging/conversations/index.d.mts.map +1 -0
- package/resources/customer/messaging/conversations/index.d.ts +3 -0
- package/resources/customer/messaging/conversations/index.d.ts.map +1 -0
- package/resources/customer/messaging/conversations/index.js +9 -0
- package/resources/customer/messaging/conversations/index.js.map +1 -0
- package/resources/customer/messaging/conversations/index.mjs +4 -0
- package/resources/customer/messaging/conversations/index.mjs.map +1 -0
- package/resources/customer/messaging/conversations/messages.d.mts +117 -0
- package/resources/customer/messaging/conversations/messages.d.mts.map +1 -0
- package/resources/customer/messaging/conversations/messages.d.ts +117 -0
- package/resources/customer/messaging/conversations/messages.d.ts.map +1 -0
- package/resources/customer/messaging/conversations/messages.js +79 -0
- package/resources/customer/messaging/conversations/messages.js.map +1 -0
- package/resources/customer/messaging/conversations/messages.mjs +75 -0
- package/resources/customer/messaging/conversations/messages.mjs.map +1 -0
- package/resources/customer/messaging/conversations.d.mts +2 -0
- package/resources/customer/messaging/conversations.d.mts.map +1 -0
- package/resources/customer/messaging/conversations.d.ts +2 -0
- package/resources/customer/messaging/conversations.d.ts.map +1 -0
- package/resources/customer/messaging/conversations.js +6 -0
- package/resources/customer/messaging/conversations.js.map +1 -0
- package/resources/customer/messaging/conversations.mjs +3 -0
- package/resources/customer/messaging/conversations.mjs.map +1 -0
- package/resources/customer/messaging/index.d.mts +3 -0
- package/resources/customer/messaging/index.d.mts.map +1 -0
- package/resources/customer/messaging/index.d.ts +3 -0
- package/resources/customer/messaging/index.d.ts.map +1 -0
- package/resources/customer/messaging/index.js +9 -0
- package/resources/customer/messaging/index.js.map +1 -0
- package/resources/customer/messaging/index.mjs +4 -0
- package/resources/customer/messaging/index.mjs.map +1 -0
- package/resources/customer/messaging/messaging.d.mts +10 -0
- package/resources/customer/messaging/messaging.d.mts.map +1 -0
- package/resources/customer/messaging/messaging.d.ts +10 -0
- package/resources/customer/messaging/messaging.d.ts.map +1 -0
- package/resources/customer/messaging/messaging.js +17 -0
- package/resources/customer/messaging/messaging.js.map +1 -0
- package/resources/customer/messaging/messaging.mjs +12 -0
- package/resources/customer/messaging/messaging.mjs.map +1 -0
- package/resources/customer/messaging.d.mts +2 -0
- package/resources/customer/messaging.d.mts.map +1 -0
- package/resources/customer/messaging.d.ts +2 -0
- package/resources/customer/messaging.d.ts.map +1 -0
- package/resources/customer/messaging.js +6 -0
- package/resources/customer/messaging.js.map +1 -0
- package/resources/customer/messaging.mjs +3 -0
- package/resources/customer/messaging.mjs.map +1 -0
- package/resources/customer/tokens.d.mts +43 -0
- package/resources/customer/tokens.d.mts.map +1 -0
- package/resources/customer/tokens.d.ts +43 -0
- package/resources/customer/tokens.d.ts.map +1 -0
- package/resources/customer/tokens.js +34 -0
- package/resources/customer/tokens.js.map +1 -0
- package/resources/customer/tokens.mjs +30 -0
- package/resources/customer/tokens.mjs.map +1 -0
- package/resources/customer.d.mts +2 -0
- package/resources/customer.d.mts.map +1 -0
- package/resources/customer.d.ts +2 -0
- package/resources/customer.d.ts.map +1 -0
- package/resources/customer.js +6 -0
- package/resources/customer.js.map +1 -0
- package/resources/customer.mjs +3 -0
- package/resources/customer.mjs.map +1 -0
- package/resources/index.d.mts +2 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +2 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +7 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -0
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +5 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/api-promise.ts +2 -0
- package/src/client.ts +748 -0
- package/src/core/README.md +3 -0
- package/src/core/api-promise.ts +92 -0
- package/src/core/error.ts +130 -0
- package/src/core/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -0
- package/src/index.ts +22 -0
- package/src/internal/README.md +3 -0
- package/src/internal/builtin-types.ts +93 -0
- package/src/internal/detect-platform.ts +196 -0
- package/src/internal/errors.ts +33 -0
- package/src/internal/headers.ts +97 -0
- package/src/internal/parse.ts +50 -0
- package/src/internal/request-options.ts +91 -0
- package/src/internal/shim-types.ts +26 -0
- package/src/internal/shims.ts +107 -0
- package/src/internal/to-file.ts +154 -0
- package/src/internal/types.ts +95 -0
- package/src/internal/uploads.ts +187 -0
- package/src/internal/utils/base64.ts +40 -0
- package/src/internal/utils/bytes.ts +32 -0
- package/src/internal/utils/env.ts +18 -0
- package/src/internal/utils/log.ts +126 -0
- package/src/internal/utils/path.ts +88 -0
- package/src/internal/utils/sleep.ts +3 -0
- package/src/internal/utils/uuid.ts +17 -0
- package/src/internal/utils/values.ts +105 -0
- package/src/internal/utils.ts +8 -0
- package/src/lib/.keep +4 -0
- package/src/resource.ts +2 -0
- package/src/resources/customer/businesses.ts +397 -0
- package/src/resources/customer/channels.ts +45 -0
- package/src/resources/customer/customer.ts +249 -0
- package/src/resources/customer/discovery/category.ts +127 -0
- package/src/resources/customer/discovery/discovery.ts +51 -0
- package/src/resources/customer/discovery/index.ts +4 -0
- package/src/resources/customer/discovery.ts +3 -0
- package/src/resources/customer/explore.ts +87 -0
- package/src/resources/customer/index.ts +33 -0
- package/src/resources/customer/messaging/conversations/conversations.ts +173 -0
- package/src/resources/customer/messaging/conversations/index.ts +21 -0
- package/src/resources/customer/messaging/conversations/messages.ts +184 -0
- package/src/resources/customer/messaging/conversations.ts +3 -0
- package/src/resources/customer/messaging/index.ts +12 -0
- package/src/resources/customer/messaging/messaging.ts +31 -0
- package/src/resources/customer/messaging.ts +3 -0
- package/src/resources/customer/tokens.ts +58 -0
- package/src/resources/customer.ts +3 -0
- package/src/resources/index.ts +14 -0
- package/src/resources.ts +1 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +2 -0
- package/src/version.ts +1 -0
- package/uploads.d.mts +2 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +2 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +6 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +2 -0
- package/uploads.mjs.map +1 -0
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as BusinessesAPI from "./businesses.js";
|
|
3
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
4
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
5
|
+
export declare class Businesses extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Retrieve business announcements and updates with pagination.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const response =
|
|
12
|
+
* await client.customer.businesses.getBulletins(
|
|
13
|
+
* 'katzs-deli',
|
|
14
|
+
* );
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
getBulletins(handle: string, query?: BusinessGetBulletinsParams | null | undefined, options?: RequestOptions): APIPromise<BusinessGetBulletinsResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Retrieve upcoming events for the business with pagination.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* const response = await client.customer.businesses.getEvents(
|
|
24
|
+
* 'katzs-deli',
|
|
25
|
+
* );
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
getEvents(handle: string, query?: BusinessGetEventsParams | null | undefined, options?: RequestOptions): APIPromise<BusinessGetEventsResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* Retrieve all menus organized by groups for the business.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* const response = await client.customer.businesses.getMenus(
|
|
35
|
+
* 'katzs-deli',
|
|
36
|
+
* );
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
getMenus(handle: string, query?: BusinessGetMenusParams | null | undefined, options?: RequestOptions): APIPromise<BusinessGetMenusResponse>;
|
|
40
|
+
/**
|
|
41
|
+
* Retrieve photo gallery for the business with pagination.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```ts
|
|
45
|
+
* const response = await client.customer.businesses.getPhotos(
|
|
46
|
+
* 'katzs-deli',
|
|
47
|
+
* );
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
getPhotos(handle: string, query?: BusinessGetPhotosParams | null | undefined, options?: RequestOptions): APIPromise<BusinessGetPhotosResponse>;
|
|
51
|
+
/**
|
|
52
|
+
* Retrieve core business information for the profile page.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```ts
|
|
56
|
+
* const response =
|
|
57
|
+
* await client.customer.businesses.retrieveProfile(
|
|
58
|
+
* 'katzs-deli',
|
|
59
|
+
* );
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
retrieveProfile(handle: string, options?: RequestOptions): APIPromise<BusinessRetrieveProfileResponse>;
|
|
63
|
+
}
|
|
64
|
+
export interface Image {
|
|
65
|
+
id: string;
|
|
66
|
+
alt_text: string | null;
|
|
67
|
+
created_at: string | null;
|
|
68
|
+
disk: string;
|
|
69
|
+
filename: string;
|
|
70
|
+
imageable_id: string;
|
|
71
|
+
imageable_type: string;
|
|
72
|
+
mime_type: string | null;
|
|
73
|
+
original_filename: string;
|
|
74
|
+
path: string;
|
|
75
|
+
size: number | null;
|
|
76
|
+
sort_order: number;
|
|
77
|
+
updated_at: string | null;
|
|
78
|
+
url: string;
|
|
79
|
+
}
|
|
80
|
+
export interface Pagination {
|
|
81
|
+
current_page: string;
|
|
82
|
+
has_more: string;
|
|
83
|
+
per_page: string;
|
|
84
|
+
total: string;
|
|
85
|
+
}
|
|
86
|
+
export interface BusinessGetBulletinsResponse {
|
|
87
|
+
data: BusinessGetBulletinsResponse.Data;
|
|
88
|
+
}
|
|
89
|
+
export declare namespace BusinessGetBulletinsResponse {
|
|
90
|
+
interface Data {
|
|
91
|
+
bulletins: Array<Data.Bulletin>;
|
|
92
|
+
pagination: BusinessesAPI.Pagination;
|
|
93
|
+
}
|
|
94
|
+
namespace Data {
|
|
95
|
+
interface Bulletin {
|
|
96
|
+
id: string;
|
|
97
|
+
content: string;
|
|
98
|
+
published_at: string | null;
|
|
99
|
+
title: string;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
export interface BusinessGetEventsResponse {
|
|
104
|
+
data: BusinessGetEventsResponse.Data;
|
|
105
|
+
}
|
|
106
|
+
export declare namespace BusinessGetEventsResponse {
|
|
107
|
+
interface Data {
|
|
108
|
+
events: Array<Data.Event>;
|
|
109
|
+
pagination: BusinessesAPI.Pagination;
|
|
110
|
+
}
|
|
111
|
+
namespace Data {
|
|
112
|
+
interface Event {
|
|
113
|
+
id: string;
|
|
114
|
+
description: string | null;
|
|
115
|
+
ends_at: string;
|
|
116
|
+
image: BusinessesAPI.Image;
|
|
117
|
+
starts_at: string;
|
|
118
|
+
title: string;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
export interface BusinessGetMenusResponse {
|
|
123
|
+
data: BusinessGetMenusResponse.Data;
|
|
124
|
+
}
|
|
125
|
+
export declare namespace BusinessGetMenusResponse {
|
|
126
|
+
interface Data {
|
|
127
|
+
menus: Array<Data.Menu>;
|
|
128
|
+
pagination: BusinessesAPI.Pagination;
|
|
129
|
+
}
|
|
130
|
+
namespace Data {
|
|
131
|
+
interface Menu {
|
|
132
|
+
id: string;
|
|
133
|
+
description: string | null;
|
|
134
|
+
groups: Array<Menu.Group>;
|
|
135
|
+
name: string;
|
|
136
|
+
}
|
|
137
|
+
namespace Menu {
|
|
138
|
+
interface Group {
|
|
139
|
+
id: string;
|
|
140
|
+
description: string | null;
|
|
141
|
+
items: Array<Group.Item>;
|
|
142
|
+
name: string;
|
|
143
|
+
}
|
|
144
|
+
namespace Group {
|
|
145
|
+
interface Item {
|
|
146
|
+
id: string;
|
|
147
|
+
allergens: Array<Item.Allergen>;
|
|
148
|
+
description: string | null;
|
|
149
|
+
image: BusinessesAPI.Image;
|
|
150
|
+
name: string;
|
|
151
|
+
price: string | null;
|
|
152
|
+
}
|
|
153
|
+
namespace Item {
|
|
154
|
+
interface Allergen {
|
|
155
|
+
id: string;
|
|
156
|
+
color: string;
|
|
157
|
+
created_at: string | null;
|
|
158
|
+
description: string | null;
|
|
159
|
+
icon: string | null;
|
|
160
|
+
name: string;
|
|
161
|
+
slug: string;
|
|
162
|
+
updated_at: string | null;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
export interface BusinessGetPhotosResponse {
|
|
170
|
+
data: BusinessGetPhotosResponse.Data;
|
|
171
|
+
}
|
|
172
|
+
export declare namespace BusinessGetPhotosResponse {
|
|
173
|
+
interface Data {
|
|
174
|
+
pagination: BusinessesAPI.Pagination;
|
|
175
|
+
photos: Array<Data.Photo>;
|
|
176
|
+
}
|
|
177
|
+
namespace Data {
|
|
178
|
+
interface Photo {
|
|
179
|
+
id: string;
|
|
180
|
+
alt_text: string;
|
|
181
|
+
url: string;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
export interface BusinessRetrieveProfileResponse {
|
|
186
|
+
data: BusinessRetrieveProfileResponse.Data;
|
|
187
|
+
}
|
|
188
|
+
export declare namespace BusinessRetrieveProfileResponse {
|
|
189
|
+
interface Data {
|
|
190
|
+
id: string;
|
|
191
|
+
address: string;
|
|
192
|
+
category: string;
|
|
193
|
+
city: string;
|
|
194
|
+
cover_photo: string;
|
|
195
|
+
description: string;
|
|
196
|
+
handle: string;
|
|
197
|
+
hours: {
|
|
198
|
+
[key: string]: Data.Hours;
|
|
199
|
+
};
|
|
200
|
+
latitude: number;
|
|
201
|
+
logo: string;
|
|
202
|
+
longitude: number;
|
|
203
|
+
name: string;
|
|
204
|
+
phone: string;
|
|
205
|
+
state: string;
|
|
206
|
+
website: string;
|
|
207
|
+
zip: string;
|
|
208
|
+
}
|
|
209
|
+
namespace Data {
|
|
210
|
+
interface Hours {
|
|
211
|
+
closeTime: string;
|
|
212
|
+
isOpen: boolean;
|
|
213
|
+
openTime: string;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
export interface BusinessGetBulletinsParams {
|
|
218
|
+
/**
|
|
219
|
+
* Page number for pagination
|
|
220
|
+
*/
|
|
221
|
+
page?: number;
|
|
222
|
+
/**
|
|
223
|
+
* Number of bulletins per page
|
|
224
|
+
*/
|
|
225
|
+
per_page?: number;
|
|
226
|
+
}
|
|
227
|
+
export interface BusinessGetEventsParams {
|
|
228
|
+
/**
|
|
229
|
+
* Page number for pagination
|
|
230
|
+
*/
|
|
231
|
+
page?: number;
|
|
232
|
+
/**
|
|
233
|
+
* Number of events per page
|
|
234
|
+
*/
|
|
235
|
+
per_page?: number;
|
|
236
|
+
}
|
|
237
|
+
export interface BusinessGetMenusParams {
|
|
238
|
+
/**
|
|
239
|
+
* Page number for pagination
|
|
240
|
+
*/
|
|
241
|
+
page?: number;
|
|
242
|
+
/**
|
|
243
|
+
* Number of items per page
|
|
244
|
+
*/
|
|
245
|
+
per_page?: number;
|
|
246
|
+
}
|
|
247
|
+
export interface BusinessGetPhotosParams {
|
|
248
|
+
/**
|
|
249
|
+
* Page number for pagination
|
|
250
|
+
*/
|
|
251
|
+
page?: number;
|
|
252
|
+
/**
|
|
253
|
+
* Number of photos per page
|
|
254
|
+
*/
|
|
255
|
+
per_page?: number;
|
|
256
|
+
}
|
|
257
|
+
export declare namespace Businesses {
|
|
258
|
+
export { type Image as Image, type Pagination as Pagination, type BusinessGetBulletinsResponse as BusinessGetBulletinsResponse, type BusinessGetEventsResponse as BusinessGetEventsResponse, type BusinessGetMenusResponse as BusinessGetMenusResponse, type BusinessGetPhotosResponse as BusinessGetPhotosResponse, type BusinessRetrieveProfileResponse as BusinessRetrieveProfileResponse, type BusinessGetBulletinsParams as BusinessGetBulletinsParams, type BusinessGetEventsParams as BusinessGetEventsParams, type BusinessGetMenusParams as BusinessGetMenusParams, type BusinessGetPhotosParams as BusinessGetPhotosParams, };
|
|
259
|
+
}
|
|
260
|
+
//# sourceMappingURL=businesses.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"businesses.d.ts","sourceRoot":"","sources":["../../src/resources/customer/businesses.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,aAAa;OAClB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;OAUG;IACH,YAAY,CACV,MAAM,EAAE,MAAM,EACd,KAAK,GAAE,0BAA0B,GAAG,IAAI,GAAG,S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,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,KAAK,IAAI,KAAK,EACnB,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Businesses = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
7
|
+
class Businesses extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Retrieve business announcements and updates with pagination.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const response =
|
|
14
|
+
* await client.customer.businesses.getBulletins(
|
|
15
|
+
* 'katzs-deli',
|
|
16
|
+
* );
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
getBulletins(handle, query = {}, options) {
|
|
20
|
+
return this._client.get((0, path_1.path) `/customer/businesses/${handle}/bulletins`, { query, ...options });
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Retrieve upcoming events for the business with pagination.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* const response = await client.customer.businesses.getEvents(
|
|
28
|
+
* 'katzs-deli',
|
|
29
|
+
* );
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
getEvents(handle, query = {}, options) {
|
|
33
|
+
return this._client.get((0, path_1.path) `/customer/businesses/${handle}/events`, { query, ...options });
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Retrieve all menus organized by groups for the business.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* const response = await client.customer.businesses.getMenus(
|
|
41
|
+
* 'katzs-deli',
|
|
42
|
+
* );
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
getMenus(handle, query = {}, options) {
|
|
46
|
+
return this._client.get((0, path_1.path) `/customer/businesses/${handle}/menus`, { query, ...options });
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Retrieve photo gallery for the business with pagination.
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```ts
|
|
53
|
+
* const response = await client.customer.businesses.getPhotos(
|
|
54
|
+
* 'katzs-deli',
|
|
55
|
+
* );
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
getPhotos(handle, query = {}, options) {
|
|
59
|
+
return this._client.get((0, path_1.path) `/customer/businesses/${handle}/photos`, { query, ...options });
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Retrieve core business information for the profile page.
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* ```ts
|
|
66
|
+
* const response =
|
|
67
|
+
* await client.customer.businesses.retrieveProfile(
|
|
68
|
+
* 'katzs-deli',
|
|
69
|
+
* );
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
72
|
+
retrieveProfile(handle, options) {
|
|
73
|
+
return this._client.get((0, path_1.path) `/customer/businesses/${handle}`, options);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
exports.Businesses = Businesses;
|
|
77
|
+
//# sourceMappingURL=businesses.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"businesses.js","sourceRoot":"","sources":["../../src/resources/customer/businesses.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,uDAAiD;AAEjD,MAAa,UAAW,SAAQ,sBAAW;IACzC;;;;;;;;;;OAUG;IACH,YAAY,CACV,MAAc,EACd,QAAuD,EAAE,EACzD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,wBAAwB,MAAM,YAAY,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjG,CAAC;IAED;;;;;;;;;OASG;IACH,SAAS,CACP,MAAc,EACd,QAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,wBAAwB,MAAM,SAAS,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9F,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CACN,MAAc,EACd,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,wBAAwB,MAAM,QAAQ,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;;;;;;;;OASG;IACH,SAAS,CACP,MAAc,EACd,QAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,wBAAwB,MAAM,SAAS,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9F,CAAC;IAED;;;;;;;;;;OAUG;IACH,eAAe,CAAC,MAAc,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,wBAAwB,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;CACF;AAxFD,gCAwFC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
4
|
+
export class Businesses extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Retrieve business announcements and updates with pagination.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const response =
|
|
11
|
+
* await client.customer.businesses.getBulletins(
|
|
12
|
+
* 'katzs-deli',
|
|
13
|
+
* );
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
getBulletins(handle, query = {}, options) {
|
|
17
|
+
return this._client.get(path `/customer/businesses/${handle}/bulletins`, { query, ...options });
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Retrieve upcoming events for the business with pagination.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* const response = await client.customer.businesses.getEvents(
|
|
25
|
+
* 'katzs-deli',
|
|
26
|
+
* );
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
getEvents(handle, query = {}, options) {
|
|
30
|
+
return this._client.get(path `/customer/businesses/${handle}/events`, { query, ...options });
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Retrieve all menus organized by groups for the business.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* const response = await client.customer.businesses.getMenus(
|
|
38
|
+
* 'katzs-deli',
|
|
39
|
+
* );
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
getMenus(handle, query = {}, options) {
|
|
43
|
+
return this._client.get(path `/customer/businesses/${handle}/menus`, { query, ...options });
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Retrieve photo gallery for the business with pagination.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```ts
|
|
50
|
+
* const response = await client.customer.businesses.getPhotos(
|
|
51
|
+
* 'katzs-deli',
|
|
52
|
+
* );
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
getPhotos(handle, query = {}, options) {
|
|
56
|
+
return this._client.get(path `/customer/businesses/${handle}/photos`, { query, ...options });
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Retrieve core business information for the profile page.
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ```ts
|
|
63
|
+
* const response =
|
|
64
|
+
* await client.customer.businesses.retrieveProfile(
|
|
65
|
+
* 'katzs-deli',
|
|
66
|
+
* );
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
69
|
+
retrieveProfile(handle, options) {
|
|
70
|
+
return this._client.get(path `/customer/businesses/${handle}`, options);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=businesses.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"businesses.mjs","sourceRoot":"","sources":["../../src/resources/customer/businesses.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,I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import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
+
export declare class Channels extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* This endpoint is used by the mobile app to authenticate with Pusher channels. It
|
|
7
|
+
* validates that the user has permission to access the requested channel.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const response =
|
|
12
|
+
* await client.customer.channels.authenticate({
|
|
13
|
+
* channel_name: 'channel_name',
|
|
14
|
+
* socket_id: 'socket_id',
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
authenticate(body: ChannelAuthenticateParams, options?: RequestOptions): APIPromise<string>;
|
|
19
|
+
}
|
|
20
|
+
export type ChannelAuthenticateResponse = string;
|
|
21
|
+
export interface ChannelAuthenticateParams {
|
|
22
|
+
/**
|
|
23
|
+
* string
|
|
24
|
+
*/
|
|
25
|
+
channel_name: string;
|
|
26
|
+
/**
|
|
27
|
+
* string
|
|
28
|
+
*/
|
|
29
|
+
socket_id: string;
|
|
30
|
+
}
|
|
31
|
+
export declare namespace Channels {
|
|
32
|
+
export { type ChannelAuthenticateResponse as ChannelAuthenticateResponse, type ChannelAuthenticateParams as ChannelAuthenticateParams, };
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=channels.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"channels.d.mts","sourceRoot":"","sources":["../../src/resources/customer/channels.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;OAYG;IACH,YAAY,CAAC,IAAI,EAAE,yBAAyB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;CAG5F;AAED,MAAM,MAAM,2BAA2B,GAAG,MAAM,CAAC;AAEjD,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
|
+
export declare class Channels extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* This endpoint is used by the mobile app to authenticate with Pusher channels. It
|
|
7
|
+
* validates that the user has permission to access the requested channel.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const response =
|
|
12
|
+
* await client.customer.channels.authenticate({
|
|
13
|
+
* channel_name: 'channel_name',
|
|
14
|
+
* socket_id: 'socket_id',
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
authenticate(body: ChannelAuthenticateParams, options?: RequestOptions): APIPromise<string>;
|
|
19
|
+
}
|
|
20
|
+
export type ChannelAuthenticateResponse = string;
|
|
21
|
+
export interface ChannelAuthenticateParams {
|
|
22
|
+
/**
|
|
23
|
+
* string
|
|
24
|
+
*/
|
|
25
|
+
channel_name: string;
|
|
26
|
+
/**
|
|
27
|
+
* string
|
|
28
|
+
*/
|
|
29
|
+
socket_id: string;
|
|
30
|
+
}
|
|
31
|
+
export declare namespace Channels {
|
|
32
|
+
export { type ChannelAuthenticateResponse as ChannelAuthenticateResponse, type ChannelAuthenticateParams as ChannelAuthenticateParams, };
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=channels.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"channels.d.ts","sourceRoot":"","sources":["../../src/resources/customer/channels.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;OAYG;IACH,YAAY,CAAC,IAAI,EAAE,yBAAyB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;CAG5F;AAED,MAAM,MAAM,2BAA2B,GAAG,MAAM,CAAC;AAEjD,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Channels = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
class Channels extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* This endpoint is used by the mobile app to authenticate with Pusher channels. It
|
|
9
|
+
* validates that the user has permission to access the requested channel.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const response =
|
|
14
|
+
* await client.customer.channels.authenticate({
|
|
15
|
+
* channel_name: 'channel_name',
|
|
16
|
+
* socket_id: 'socket_id',
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
authenticate(body, options) {
|
|
21
|
+
return this._client.post('/customer/channels/auth', { body, ...options });
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.Channels = Channels;
|
|
25
|
+
//# sourceMappingURL=channels.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"channels.js","sourceRoot":"","sources":["../../src/resources/customer/channels.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;;;OAYG;IACH,YAAY,CAAC,IAA+B,EAAE,OAAwB;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF;AAjBD,4BAiBC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
export class Channels extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* This endpoint is used by the mobile app to authenticate with Pusher channels. It
|
|
6
|
+
* validates that the user has permission to access the requested channel.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const response =
|
|
11
|
+
* await client.customer.channels.authenticate({
|
|
12
|
+
* channel_name: 'channel_name',
|
|
13
|
+
* socket_id: 'socket_id',
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
authenticate(body, options) {
|
|
18
|
+
return this._client.post('/customer/channels/auth', { body, ...options });
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=channels.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"channels.mjs","sourceRoot":"","sources":["../../src/resources/customer/channels.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;OAYG;IACH,YAAY,CAAC,IAA+B,EAAE,OAAwB;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF"}
|