@reopt-ai/workspace-sdk 0.1.0-rc.13 → 0.1.0-rc.15
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 +58 -0
- package/README.md +3 -1
- package/dist/{client-BX4VHJS6.js → client-BqdU2uJM.js} +4 -4
- package/dist/{client-olMIaJZH.d.ts → client-C-J5e2Zo.d.ts} +32 -3
- package/dist/{connect-CTxppAjD.d.ts → connect-aWLB141V.d.ts} +35 -6
- package/dist/connect.d.ts +3 -3
- package/dist/connect.js +2 -2
- package/dist/{errors-DKMC4kId.js → errors-Cnh-XDtf.js} +2 -2
- package/dist/forms.js +6 -3
- package/dist/index.d.ts +4 -4
- package/dist/index.js +5 -5
- package/dist/installation/index.d.ts +1 -1
- package/dist/installation/index.js +17 -2
- package/dist/machine/keygen-cli.js +4 -2
- package/dist/{page-rc95cliL.js → page-Ck2IVCQF.js} +33 -8
- package/dist/{permissions-DKm_zC_X.d.ts → permissions-D5-qPHua.d.ts} +2 -2
- package/dist/permissions.d.ts +1 -1
- package/dist/permissions.js +8 -1
- package/dist/{schemas-eWh_FUfh.js → schemas-BBUKRn_G.js} +23 -3
- package/dist/social/index.d.ts +1 -1
- package/dist/social/index.js +2 -2
- package/dist/testing/index.d.ts +31 -4
- package/dist/testing/index.js +210 -6
- package/dist/{transport-BEwY_twi.js → transport-C8zLAgkC.js} +2 -2
- package/dist/webhooks.d.ts +61 -1
- package/dist/webhooks.js +47 -1
- package/docs/testing.md +49 -3
- package/docs/workspace.md +87 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,64 @@ This project adheres to [Semantic Versioning](https://semver.org/).
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.1.0-rc.15] — 2026-11-22
|
|
11
|
+
|
|
12
|
+
Pre-release (`npm i @reopt-ai/workspace-sdk@next`). 깨지는 변경 없음(웹훅 등록의 scope 규칙이 서버에서 바뀐다 — 아래 Changed).
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
|
|
16
|
+
- **`postsChanged` 웹훅** — 워크스페이스의 글이 바뀌면(발행·게시 중 수정·내림·삭제·순서·태그·그룹) 등록한 주소로 온다.
|
|
17
|
+
공개 사이트가 캐시 주기를 기다리지 않고 다시 굽는 신호다. 한 요청의 변경은 한 번으로 묶여 오고, `data.published`에
|
|
18
|
+
**지금 게시 중인** 글의 주소가 실린다(초안의 주소는 싣지 않는다). id가 100개를 넘으면 `data.truncated`. 구독에는
|
|
19
|
+
`posts:read` scope가 필요하다.
|
|
20
|
+
`platform.webhooks.upsert({ triggers: ["postsChanged"] })`, 수신은 `/webhooks`의 `handlers.postsChanged`.
|
|
21
|
+
타입 `PostsChangedData`, 스키마 `platformPostsChangedEventSchema`.
|
|
22
|
+
- **`signWebhookRequest`**(`/webhooks`) — 리옵트와 같은 형식으로 서명한 요청을 만든다. 수신 핸들러를 따로 시험할 때 쓴다
|
|
23
|
+
(틀린 서명·오래된 시각·중복 전달).
|
|
24
|
+
- **`/testing` — 웹훅** — 에뮬레이터가 기계 표면의 `/v1/webhooks`(등록·목록·삭제)를 답하고, 등록한 주소로 `postsChanged`를
|
|
25
|
+
**실제로 보낸다**(운영과 같은 서명 — 진짜 수신 핸들러가 검증한다). 운영처럼 위임 표면의 글 쓰기마다 따라 나간다.
|
|
26
|
+
`devPlatform.emitPostsChanged()`(스튜디오에서 바뀐 것처럼 신호만), `settled()`, `webhookDeliveries`,
|
|
27
|
+
옵션 `webhooks.fetch`·`machine.scopes`. 등록 규칙(새 주소의 비밀, 트리거별 scope)은 서버와 같다.
|
|
28
|
+
|
|
29
|
+
- `PLATFORM_WEBHOOK_TRIGGER_SCOPES` — 트리거를 구독하는 데 필요한 scope의 표(서버·설치 선언 검증·에뮬레이터가 같은 값을 읽는다).
|
|
30
|
+
|
|
31
|
+
### Changed
|
|
32
|
+
|
|
33
|
+
- **웹훅 등록은 트리거마다 그 자료의 scope를 본다**(서버). `workTaskStageChanged`는 `works:write`, `postsChanged`는
|
|
34
|
+
`posts:read`(둘 다 `workspace:admin`이면 통과). 지금까지는 트리거가 하나뿐이라 `works:write` 하나로 충분했다.
|
|
35
|
+
- **기계 자격은 자기가 만든 웹훅만 본다**(서버). `platform.webhooks.list()`·`upsert`·`delete`가 이 자격(또는 같은 설치)이
|
|
36
|
+
등록한 행만 다룬다 — 지금까지는 scope만 맞으면 그 워크스페이스의 플랫폼 웹훅 전부였다. 남이 등록한 주소에 `upsert`하면
|
|
37
|
+
새로 만들거나 덮지 않고 403 `FORBIDDEN`이다. `workspace:admin`은 그대로 전부를 본다. 이 변경 이전에 만든 업무 웹훅
|
|
38
|
+
(`workTaskStageChanged`만 가진 행)은 `works:write`로 계속 다룰 수 있고, 처음 고친 자격의 것이 된다.
|
|
39
|
+
- **설치 선언** — `postsChanged` 웹훅을 선언하면 어떤 클라이언트가 `posts:read`(또는 `workspace:admin`)를 청해야 한다.
|
|
40
|
+
아니면 `installationManifestSchema`가 거절한다(승인 화면의 권한 목록에 없는 자료를 받지 않게).
|
|
41
|
+
|
|
42
|
+
## [0.1.0-rc.14] — 2026-11-22
|
|
43
|
+
|
|
44
|
+
Pre-release (`npm i @reopt-ai/workspace-sdk@next`). 깨지는 변경 없음.
|
|
45
|
+
|
|
46
|
+
### Added
|
|
47
|
+
|
|
48
|
+
- **문의 목록 필터** — `inquiries.list({ formIds, stageIds, customerId, submittedAfter, submittedBefore })`. 지금까지는 폼으로만
|
|
49
|
+
좁힐 수 있어 앱이 최근 N건을 읽어 메모리에서 걸렀다(그 밖의 문의에는 닿지 못했다). 빈 `stageIds`는 결과 없음이다.
|
|
50
|
+
- **문의 요약** — `inquiries.summary({ formIds })` → `{ total, byStage, last7Days, previous7Days }`. 목록을 읽지 않고 세므로
|
|
51
|
+
상한이 없다. 건수뿐이라 `customer:read` scope 없이 읽는다. `/testing`도 같다.
|
|
52
|
+
|
|
53
|
+
### Changed
|
|
54
|
+
|
|
55
|
+
- **`inquiries.moveStage`는 `customer:read` scope도 요구한다**(서버). 응답에 문의 전체(연락처·답)가 실리는데 쓰기 scope만
|
|
56
|
+
보던 탓에, 연락처 scope가 없는 연결이 단계를 옮기는 것으로 연락처를 읽을 수 있었다. 문의를 읽는 앱은 이미 그 scope를
|
|
57
|
+
갖고 있어 달라지는 것이 없다. `CONNECT_OPERATIONS["inquiries.moveStage"].alsoScopes`와 `canCall`이 같은 조건을 말한다.
|
|
58
|
+
|
|
59
|
+
### Fixed
|
|
60
|
+
|
|
61
|
+
- `/forms` — 응답 본문을 읽는 도중의 제한 시간·취소가 "JSON이 아님"으로 삼켜져 다시 시도할 수 없는 `INVALID_RESPONSE`가
|
|
62
|
+
됐다. 이제 `TIMEOUT`(다시 시도 가능) 또는 호출자의 `AbortError`다. `labelAnswers`는 답의 자기 속성만 읽는다.
|
|
63
|
+
- `reopt-keygen --next`가 옛 회전 순서("서명은 NEXT로 간다")를 안내했다 — rc.12에서 서명 순서를 바꾸며 이 문구를 놓쳤다.
|
|
64
|
+
지금 동작(게시 → 리옵트가 새 키를 앎 → 승격)대로 안내한다.
|
|
65
|
+
- 서버가 `inquiries.list`의 `offset`을 읽지 않았다 — 둘째 장을 청해도 첫 장이 왔고 `listAll(inquiries.list)`는 같은 장을
|
|
66
|
+
되풀이했다. 서버 수정이라 이 버전 이전의 SDK도 배포 뒤부터 바로 맞게 동작한다.
|
|
67
|
+
|
|
10
68
|
## [0.1.0-rc.13] — 2026-11-22
|
|
11
69
|
|
|
12
70
|
Pre-release (`npm i @reopt-ai/workspace-sdk@next`). 깨지는 변경 없음.
|
package/README.md
CHANGED
|
@@ -20,7 +20,9 @@ a company site, a service that files work into Studio) rather than being one bra
|
|
|
20
20
|
per-field messages, `labelAnswers` for admin screens. See `docs/forms.md`.
|
|
21
21
|
- **Mentions** (`/mentions`, no dependencies) — `mentionToken`, `splitMentions` for task comments.
|
|
22
22
|
- **Webhooks** (`/webhooks`, no dependencies) — receive Reopt's events with the signature and
|
|
23
|
-
replay window checked: `createWebhookHandler({ secret, handlers })`.
|
|
23
|
+
replay window checked: `createWebhookHandler({ secret, handlers })`. Events: `workTaskStageChanged`
|
|
24
|
+
(a task moved in Studio) and `postsChanged` (the workspace's posts changed — revalidate your
|
|
25
|
+
public site). `signWebhookRequest` builds a signed request for tests and local development.
|
|
24
26
|
- **Machine credentials** (`/machine`) — `private_key_jwt` + DPoP, key generation (`reopt-keygen`), JWKS.
|
|
25
27
|
- **Installations** (`/installation`) — declare, sign and request your app's connection.
|
|
26
28
|
- **Resource verifier** (`/resource`), **social operations** (`/social`), **id host resolution** (`/urls`).
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { l as SDK_VERSION, n as PlatformApiError } from "./errors-
|
|
2
|
-
import { n as readPlatformFailure } from "./transport-
|
|
1
|
+
import { l as SDK_VERSION, n as PlatformApiError } from "./errors-Cnh-XDtf.js";
|
|
2
|
+
import { n as readPlatformFailure } from "./transport-C8zLAgkC.js";
|
|
3
3
|
import { resolvePlatformUrls } from "./urls.js";
|
|
4
4
|
import { o as readClientKeyRing } from "./keys--ef_VwZ-.js";
|
|
5
5
|
import { r as createMachineClient } from "./client-BLaFMBbS.js";
|
|
6
|
-
import {
|
|
6
|
+
import { $ as platformWebhookSchema, A as platformMeSchema, F as platformPipelineResourceSchema, H as platformPublishedPostPageSchema, I as platformPipelineSchema, J as platformTaskSchema, M as platformOAuthClientResourceSchema, O as platformLockAcquiredSchema, U as platformPublishedPostSchema, g as platformBrandResourceSchema, k as platformLockReleasedSchema, nt as platformWriteMetaSchema, q as platformResourcesV2Schema, v as platformBrandappResourceSchema, w as platformEavSchemaApplyResultSchema } from "./schemas-BBUKRn_G.js";
|
|
7
7
|
|
|
8
8
|
//#region src/workspace/client.ts
|
|
9
9
|
const DEFAULT_PLATFORM_SCOPES = ["works:read", "works:write"];
|
|
@@ -272,4 +272,4 @@ function createPlatformClient(config) {
|
|
|
272
272
|
|
|
273
273
|
//#endregion
|
|
274
274
|
export { createPlatformClient as n, createPlatformRequester as r, DEFAULT_PLATFORM_SCOPES as t };
|
|
275
|
-
//# sourceMappingURL=client-
|
|
275
|
+
//# sourceMappingURL=client-BqdU2uJM.js.map
|
|
@@ -16,7 +16,13 @@ import { z } from "zod";
|
|
|
16
16
|
*/
|
|
17
17
|
declare const PLATFORM_TASK_PRIORITIES: readonly ["low", "medium", "high", "urgent"];
|
|
18
18
|
declare const PLATFORM_TASK_OUTCOMES: readonly ["completed", "canceled"];
|
|
19
|
-
declare const PLATFORM_WEBHOOK_TRIGGERS: readonly ["workTaskStageChanged"];
|
|
19
|
+
declare const PLATFORM_WEBHOOK_TRIGGERS: readonly ["workTaskStageChanged", "postsChanged"];
|
|
20
|
+
/**
|
|
21
|
+
* 트리거를 구독하는 데 필요한 기계 scope — **그 사건의 자료를 다루는 scope**다(`workspace:admin`은 전부).
|
|
22
|
+
* 웹훅의 `data`는 그 자료의 일부라, 표가 없으면 업무 쓰기 열쇠가 글 변경을 구독해 scope 밖의 것을 받는다.
|
|
23
|
+
* 서버(`/v1/webhooks`)·설치 선언 검증·개발 에뮬레이터가 이 표 하나를 읽는다.
|
|
24
|
+
*/
|
|
25
|
+
declare const PLATFORM_WEBHOOK_TRIGGER_SCOPES: Readonly<Record<(typeof PLATFORM_WEBHOOK_TRIGGERS)[number], string>>;
|
|
20
26
|
type PlatformTaskPriority = (typeof PLATFORM_TASK_PRIORITIES)[number];
|
|
21
27
|
type PlatformTaskOutcome = (typeof PLATFORM_TASK_OUTCOMES)[number] | null;
|
|
22
28
|
type PlatformWebhookTrigger = (typeof PLATFORM_WEBHOOK_TRIGGERS)[number];
|
|
@@ -211,6 +217,28 @@ type PlatformWorkTaskStageChangedEvent = {
|
|
|
211
217
|
label: string | null;
|
|
212
218
|
}>;
|
|
213
219
|
};
|
|
220
|
+
/**
|
|
221
|
+
* 웹훅 `postsChanged`의 `data` — "이 워크스페이스의 글이 바뀌었으니 다시 읽어라".
|
|
222
|
+
*
|
|
223
|
+
* 발행·게시 중 수정·내림·삭제·순서·태그·그룹 변경이 전부 이 하나로 온다(초안만 바뀐 경우에도 올 수 있다 —
|
|
224
|
+
* 받는 쪽은 다시 읽기만 하면 되므로 틀리지 않는다). 한 요청의 변경은 한 번으로 묶여 온다.
|
|
225
|
+
*/
|
|
226
|
+
type PlatformPostsChangedEvent = {
|
|
227
|
+
/** 바뀐 글의 id(100개까지). 지워진 글·초안도 여기에는 있다. 그룹이나 브랜드를 통째로 지우면 글 id 없이 `groupIds`만 온다 */
|
|
228
|
+
postIds: string[];
|
|
229
|
+
/** 바뀐 글 그룹의 id(100개까지) */
|
|
230
|
+
groupIds: string[];
|
|
231
|
+
/** `postIds` 가운데 **지금 게시 중인** 글 — 여기 없는 것은 내렸거나 지웠거나 초안이다 */
|
|
232
|
+
published: Array<{
|
|
233
|
+
id: string;
|
|
234
|
+
groupId: string;
|
|
235
|
+
slug: string;
|
|
236
|
+
}>;
|
|
237
|
+
/** id가 100개를 넘어 잘렸다 — 주소별이 아니라 통째로 다시 굽는다 */
|
|
238
|
+
truncated: boolean;
|
|
239
|
+
/** 보낸 시각(ms epoch). 순서를 보는 값이다 — 이 값이 작다고 사건을 버리지 않는다(늦게 온 재전송도 자기 id를 싣고 있다) */
|
|
240
|
+
version: number;
|
|
241
|
+
};
|
|
214
242
|
declare const platformTaskSchema: z.ZodType<PlatformTask>;
|
|
215
243
|
declare const platformWriteMetaSchema: z.ZodType<PlatformWriteMeta>;
|
|
216
244
|
declare const platformPipelineSchema: z.ZodType<PlatformPipeline>;
|
|
@@ -240,6 +268,7 @@ declare const platformPublishedPostDetailQuerySchema: z.ZodType<{
|
|
|
240
268
|
}, unknown>;
|
|
241
269
|
declare const platformWebhookSchema: z.ZodType<PlatformWebhook>;
|
|
242
270
|
declare const platformErrorSchema: z.ZodType<PlatformErrorBody>;
|
|
271
|
+
declare const platformPostsChangedEventSchema: z.ZodType<PlatformPostsChangedEvent>;
|
|
243
272
|
declare const platformWorkTaskStageChangedEventSchema: z.ZodType<PlatformWorkTaskStageChangedEvent>;
|
|
244
273
|
declare const PLATFORM_ADMIN_SCOPE: "workspace:admin";
|
|
245
274
|
declare const PLATFORM_MANAGED_BY_VALUES: readonly ["code"];
|
|
@@ -685,5 +714,5 @@ type PlatformClient = {
|
|
|
685
714
|
};
|
|
686
715
|
declare function createPlatformClient(config: PlatformClientConfig): PlatformClient;
|
|
687
716
|
//#endregion
|
|
688
|
-
export {
|
|
689
|
-
//# sourceMappingURL=client-
|
|
717
|
+
export { PlatformResources as $, platformWebhookUpsertInputSchema as $t, PlatformEavSchemaApplyInput as A, platformOAuthClientImportInputSchema as At, PlatformOAuthClientResource as B, platformPublishedPostListQuerySchema as Bt, PlatformBrandappResource as C, platformEavSchemaApplyResultSchema as Ct, PlatformEavBrandappResources as D, platformLockAcquiredSchema as Dt, PlatformDomainStatus as E, platformExternalIdSchema as Et, PlatformLockReleased as F, platformPipelineSchema as Ft, PlatformPipelineStageInput as G, platformResourcesSchema as Gt, PlatformPipeline as H, platformPublishedPostSchema as Ht, PlatformManagedBy as I, platformPipelineStageInputSchema as It, PlatformPublishedPost as J, platformTaskStageInputSchema as Jt, PlatformPipelineUpsertInput as K, platformResourcesV2Schema as Kt, PlatformMe as L, platformPipelineUpsertInputSchema as Lt, PlatformEavSchemaOperation as M, platformOAuthClientUpsertInputSchema as Mt, PlatformErrorBody as N, platformPipelineImportInputSchema as Nt, PlatformEavDataType as O, platformLockReleasedSchema as Ot, PlatformLockAcquired as P, platformPipelineResourceSchema as Pt, PlatformPublishedPostSummary as Q, platformWebhookSchema as Qt, PlatformOAuthClientImportInput as R, platformPostsChangedEventSchema as Rt, PlatformBrandUpsertInput as S, platformEavSchemaApplyInputSchema as St, PlatformCustomerUpsertInput as T, platformErrorSchema as Tt, PlatformPipelineImportInput as U, platformPublishedPostSummarySchema as Ut, PlatformOAuthClientUpsertInput as V, platformPublishedPostPageSchema as Vt, PlatformPipelineResource as W, platformResourceKeySchema as Wt, PlatformPublishedPostListOptions as X, platformTaskUpsertInputSchema as Xt, PlatformPublishedPostGetOptions as Y, platformTaskStageSchema as Yt, PlatformPublishedPostPage as Z, platformWebhookResourceSchema as Zt, PLATFORM_TOKEN_ENDPOINT_AUTH_METHODS as _, platformBrandappResourceSchema as _t, createPlatformClient as a, PlatformTaskStage as at, PlatformBrandImportInput as b, platformEavBrandappResourcesSchema as bt, PLATFORM_DOMAIN_STATUSES as c, PlatformWebhook as ct, PLATFORM_OAUTH_APPLICATION_TYPES as d, PlatformWebhookUpsertInput as dt, platformWorkTaskStageChangedEventSchema as en, PlatformResourcesV2 as et, PLATFORM_OAUTH_CLIENT_PURPOSES as f, PlatformWorkTaskStageChangedEvent as ft, PLATFORM_TASK_PRIORITIES as g, platformBrandUpsertInputSchema as gt, PLATFORM_TASK_OUTCOMES as h, platformBrandResourceSchema as ht, PlatformWriteResult as i, PlatformTaskPriority as it, PlatformEavSchemaApplyResult as j, platformOAuthClientResourceSchema as jt, PlatformEavEntityResource as k, platformMeSchema as kt, PLATFORM_EAV_DATA_TYPES as l, PlatformWebhookResource as lt, PLATFORM_STAGE_COLORS as m, platformBrandImportInputSchema as mt, PlatformClient as n, PlatformTask as nt, PLATFORM_ADMIN_SCOPE as o, PlatformTaskStageInput as ot, PLATFORM_OAUTH_GRANT_TYPES as p, PlatformWriteMeta as pt, PlatformPostsChangedEvent as q, platformTaskSchema as qt, PlatformClientConfig as r, PlatformTaskOutcome as rt, PLATFORM_BRANDAPP_STATUSES as s, PlatformTaskUpsertInput as st, DEFAULT_PLATFORM_SCOPES as t, platformWriteMetaSchema as tn, PlatformStageColor as tt, PLATFORM_MANAGED_BY_VALUES as u, PlatformWebhookTrigger as ut, PLATFORM_WEBHOOK_TRIGGERS as v, platformBrandappUpsertInputSchema as vt, PlatformBrandappUpsertInput as w, platformEavSchemaOperationSchema as wt, PlatformBrandResource as x, platformEavEntityResourceSchema as xt, PLATFORM_WEBHOOK_TRIGGER_SCOPES as y, platformCustomerUpsertInputSchema as yt, PlatformOAuthClientPurpose as z, platformPublishedPostDetailQuerySchema as zt };
|
|
718
|
+
//# sourceMappingURL=client-C-J5e2Zo.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as WorkspacePermissionKey, o as ConnectScope } from "./permissions-
|
|
1
|
+
import { c as WorkspacePermissionKey, o as ConnectScope } from "./permissions-D5-qPHua.js";
|
|
2
2
|
import { i as SortOf, n as Page, r as PageQuery, t as CountedPage } from "./page-j1OCu4of.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region src/workspace/transport.d.ts
|
|
@@ -318,6 +318,32 @@ type ConnectSignedUrl = {
|
|
|
318
318
|
};
|
|
319
319
|
type ConnectFormType = "feedback" | "inquiry" | "consultation" | "custom" | "booking" | (string & {});
|
|
320
320
|
type ConnectFormStatus = "draft" | "published" | "archived";
|
|
321
|
+
type ConnectInquiryListQuery = {
|
|
322
|
+
/** 1~50개 */
|
|
323
|
+
formIds: string[];
|
|
324
|
+
/**
|
|
325
|
+
* 운영 보드의 이 단계들에 있는 문의만. 카드가 없는 문의는 빠진다. 빈 배열은 "거르지 않음"이 아니라 **결과 없음**이다
|
|
326
|
+
* (요청을 보내지 않고 빈 장을 돌려준다).
|
|
327
|
+
*/
|
|
328
|
+
stageIds?: string[];
|
|
329
|
+
/** 이 고객이 낸 문의만 — 고객 상세 화면의 "문의 내역" */
|
|
330
|
+
customerId?: string;
|
|
331
|
+
/** 접수 시각 구간 — `submittedAfter` 이상, `submittedBefore` 미만. 문자열은 시간대가 붙은 ISO 시각(`…T00:00:00+09:00`·`…Z`) */
|
|
332
|
+
submittedAfter?: string | Date;
|
|
333
|
+
submittedBefore?: string | Date;
|
|
334
|
+
} & PageQuery;
|
|
335
|
+
/** 문의 건수 — 목록을 다 읽지 않고 센 값(대시보드, 단계 탭의 숫자) */
|
|
336
|
+
type ConnectInquirySummary = {
|
|
337
|
+
total: number;
|
|
338
|
+
/** 단계별 건수(많은 순). 카드가 없는 문의는 `stageId: null` 한 줄. 0건인 단계는 없다 */
|
|
339
|
+
byStage: Array<{
|
|
340
|
+
stageId: string | null;
|
|
341
|
+
count: number;
|
|
342
|
+
}>;
|
|
343
|
+
/** 지금부터 7일 안에 접수된 건수와 그 앞 7일의 건수 */
|
|
344
|
+
last7Days: number;
|
|
345
|
+
previous7Days: number;
|
|
346
|
+
};
|
|
321
347
|
/**
|
|
322
348
|
* 앱에 열리는 알림 종류 — 업무(담당 지정·댓글·멘션·단계 이동·마감 임박), 폼 제출, 신규 고객. 리옵트의 다른 알림
|
|
323
349
|
* (결제·보안·구성원)은 이 표면에 오지 않는다.
|
|
@@ -668,6 +694,7 @@ declare const connectFolderSchema: z.ZodType<ConnectFolder>;
|
|
|
668
694
|
declare const connectFileSchema: z.ZodType<ConnectFile>;
|
|
669
695
|
declare const connectFileUsageSchema: z.ZodType<ConnectFileUsage>;
|
|
670
696
|
declare const connectNotificationSchema: z.ZodType<ConnectNotification>;
|
|
697
|
+
declare const connectInquirySummarySchema: z.ZodType<ConnectInquirySummary>;
|
|
671
698
|
declare const connectFormSchema: z.ZodType<ConnectForm>;
|
|
672
699
|
declare const connectInquirySchema: z.ZodType<ConnectInquiry>;
|
|
673
700
|
declare const connectInquiryDetailSchema: z.ZodType<ConnectInquiryDetail>;
|
|
@@ -834,10 +861,12 @@ type ConnectClient = {
|
|
|
834
861
|
};
|
|
835
862
|
/** 문의 = 브랜드폼 제출 + 운영 보드 단계. 읽기는 `customer:read` scope가 필요하다(연락처) */
|
|
836
863
|
inquiries: {
|
|
837
|
-
/** `formIds`는 1~50개. `limit`을 안 주면 한 장에 100건(최대 500) */
|
|
838
|
-
list: (query:
|
|
864
|
+
/** 접수 최신순. `formIds`는 1~50개. `limit`을 안 주면 한 장에 100건(최대 500). 단계·고객·기간으로 좁힌다 */
|
|
865
|
+
list: (query: ConnectInquiryListQuery, options?: Options) => Promise<Page<ConnectInquiry>>;
|
|
866
|
+
/** 건수 요약 — 전체·단계별·최근 7일. 연락처가 없어 `customer:read` scope 없이도 읽는다 */
|
|
867
|
+
summary: (query: {
|
|
839
868
|
formIds: string[];
|
|
840
|
-
}
|
|
869
|
+
}, options?: Options) => Promise<ConnectInquirySummary>;
|
|
841
870
|
get: (submissionId: string, options?: Options) => Promise<ConnectInquiryDetail>;
|
|
842
871
|
moveStage: (submissionId: string, stageId: string, options?: Options) => Promise<ConnectInquiryMoveResult>;
|
|
843
872
|
};
|
|
@@ -898,5 +927,5 @@ type ConnectClient = {
|
|
|
898
927
|
};
|
|
899
928
|
declare function createConnectClient(config: ConnectClientConfig): ConnectClient;
|
|
900
929
|
//#endregion
|
|
901
|
-
export {
|
|
902
|
-
//# sourceMappingURL=connect-
|
|
930
|
+
export { ConnectSignedUrl as $, ConnectInquiryListQuery as A, connectMemberSchema as At, ConnectPostAuthor as B, createConnectClient as Bt, ConnectFolder as C, connectFolderSchema as Ct, ConnectFormType as D, connectInquirySchema as Dt, ConnectFormStatus as E, connectInquiryMoveResultSchema as Et, ConnectMemberRole as F, connectPostSummarySchema as Ft, ConnectPostMetaInput as G, ConnectPostGroup as H, ConnectNotification as I, connectPostTagSchema as It, ConnectPostStatus as J, ConnectPostSortField as K, ConnectNotificationKind as L, connectTaskCommentSchema as Lt, ConnectInquirySummary as M, connectPipelineSchema as Mt, ConnectMe as N, connectPostGroupSchema as Nt, ConnectInquiry as O, connectInquirySummarySchema as Ot, ConnectMember as P, connectPostSchema as Pt, ConnectRequestOptions as Q, ConnectPipeline as R, connectTaskFeedItemSchema as Rt, ConnectFileVisibility as S, connectFileUsageSchema as St, ConnectForm as T, connectInquiryDetailSchema as Tt, ConnectPostGroupKind as U, ConnectPostCreateInput as V, ConnectPostListQuery as W, ConnectPostTag as X, ConnectPostSummary as Y, ConnectPostUpdateInput as Z, ConnectEavRecord as _, connectCustomerSchema as _t, ConnectClientConfig as a, ConnectTaskComment as at, ConnectFileSortField as b, connectEavRecordSchema as bt, ConnectCustomerEvent as c, ConnectTaskFeedMember as ct, ConnectCustomerNote as d, ConnectTaskPriority as dt, ConnectSignedUrlOptions as et, ConnectCustomerRecord as f, ConnectTaskSortField as ft, ConnectEavEntity as g, connectCustomerNoteSchema as gt, ConnectCustomerUpdateInput as h, connectBrandSchema as ht, ConnectClient as i, ConnectTaskActivity as it, ConnectInquiryMoveResult as j, connectNotificationSchema as jt, ConnectInquiryDetail as k, connectMeSchema as kt, ConnectCustomerField as l, ConnectTaskListQuery as lt, ConnectCustomerTag as m, ConnectWorkspaceTier as mt, ConnectAnswerValue as n, ConnectStageOutcome as nt, ConnectCustomer as o, ConnectTaskCreateInput as ot, ConnectCustomerSummary as p, ConnectTaskUpdateInput as pt, ConnectPostSpec as q, ConnectBrand as r, ConnectTask as rt, ConnectCustomerCreateInput as s, ConnectTaskFeedItem as st, ConnectAccessToken as t, ConnectStageColor as tt, ConnectCustomerListQuery as u, ConnectTaskMoveInput as ut, ConnectFile as v, connectCustomerSummarySchema as vt, ConnectFolderKind as w, connectFormSchema as wt, ConnectFileUsage as x, connectFileSchema as xt, ConnectFileListQuery as y, connectEavEntitySchema as yt, ConnectPost as z, connectTaskSchema as zt };
|
|
931
|
+
//# sourceMappingURL=connect-aWLB141V.d.ts.map
|
package/dist/connect.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as ConnectOperationRule, c as WorkspacePermissionKey, d as canAny, f as canCall, i as ConnectOperation, l as can, n as CONNECT_OPERATION_NAMES, o as ConnectScope, r as CONNECT_SCOPES, s as WORKSPACE_PERMISSION_KEYS, t as CONNECT_OPERATIONS, u as canAll } from "./permissions-
|
|
1
|
+
import { a as ConnectOperationRule, c as WorkspacePermissionKey, d as canAny, f as canCall, i as ConnectOperation, l as can, n as CONNECT_OPERATION_NAMES, o as ConnectScope, r as CONNECT_SCOPES, s as WORKSPACE_PERMISSION_KEYS, t as CONNECT_OPERATIONS, u as canAll } from "./permissions-D5-qPHua.js";
|
|
2
2
|
import { a as iterate, i as SortOf, n as Page, o as listAll, r as PageQuery, t as CountedPage } from "./page-j1OCu4of.js";
|
|
3
3
|
import { a as PlatformSdkErrorCode, c as isNotImplemented, d as isPlatformError, f as isSignInRequired, i as PlatformFieldError, l as isPermissionDenied, n as PlatformApiError, o as PlatformServerErrorCode, r as PlatformErrorCode, s as SDK_ERROR_CODES, t as PLATFORM_ERROR_CODES, u as isPlatformApiError } from "./errors-CLUuzCNG.js";
|
|
4
|
-
import { $ as
|
|
4
|
+
import { $ as ConnectSignedUrl, A as ConnectInquiryListQuery, At as connectMemberSchema, B as ConnectPostAuthor, Bt as createConnectClient, C as ConnectFolder, Ct as connectFolderSchema, D as ConnectFormType, Dt as connectInquirySchema, E as ConnectFormStatus, Et as connectInquiryMoveResultSchema, F as ConnectMemberRole, Ft as connectPostSummarySchema, G as ConnectPostMetaInput, H as ConnectPostGroup, I as ConnectNotification, It as connectPostTagSchema, J as ConnectPostStatus, K as ConnectPostSortField, L as ConnectNotificationKind, Lt as connectTaskCommentSchema, M as ConnectInquirySummary, Mt as connectPipelineSchema, N as ConnectMe, Nt as connectPostGroupSchema, O as ConnectInquiry, Ot as connectInquirySummarySchema, P as ConnectMember, Pt as connectPostSchema, Q as ConnectRequestOptions, R as ConnectPipeline, Rt as connectTaskFeedItemSchema, S as ConnectFileVisibility, St as connectFileUsageSchema, T as ConnectForm, Tt as connectInquiryDetailSchema, U as ConnectPostGroupKind, V as ConnectPostCreateInput, W as ConnectPostListQuery, X as ConnectPostTag, Y as ConnectPostSummary, Z as ConnectPostUpdateInput, _ as ConnectEavRecord, _t as connectCustomerSchema, a as ConnectClientConfig, at as ConnectTaskComment, b as ConnectFileSortField, bt as connectEavRecordSchema, c as ConnectCustomerEvent, ct as ConnectTaskFeedMember, d as ConnectCustomerNote, dt as ConnectTaskPriority, et as ConnectSignedUrlOptions, f as ConnectCustomerRecord, ft as ConnectTaskSortField, g as ConnectEavEntity, gt as connectCustomerNoteSchema, h as ConnectCustomerUpdateInput, ht as connectBrandSchema, i as ConnectClient, it as ConnectTaskActivity, j as ConnectInquiryMoveResult, jt as connectNotificationSchema, k as ConnectInquiryDetail, kt as connectMeSchema, l as ConnectCustomerField, lt as ConnectTaskListQuery, m as ConnectCustomerTag, mt as ConnectWorkspaceTier, n as ConnectAnswerValue, nt as ConnectStageOutcome, o as ConnectCustomer, ot as ConnectTaskCreateInput, p as ConnectCustomerSummary, pt as ConnectTaskUpdateInput, q as ConnectPostSpec, r as ConnectBrand, rt as ConnectTask, s as ConnectCustomerCreateInput, st as ConnectTaskFeedItem, t as ConnectAccessToken, tt as ConnectStageColor, u as ConnectCustomerListQuery, ut as ConnectTaskMoveInput, v as ConnectFile, vt as connectCustomerSummarySchema, w as ConnectFolderKind, wt as connectFormSchema, x as ConnectFileUsage, xt as connectFileSchema, y as ConnectFileListQuery, yt as connectEavEntitySchema, z as ConnectPost, zt as connectTaskSchema } from "./connect-aWLB141V.js";
|
|
5
5
|
import { n as mentionToken, r as splitMentions, t as MentionSegment } from "./mentions-BMI2c7O6.js";
|
|
6
|
-
export { CONNECT_OPERATIONS, CONNECT_OPERATION_NAMES, CONNECT_SCOPES, type ConnectAccessToken, type ConnectAnswerValue, type ConnectBrand, type ConnectClient, type ConnectClientConfig, type ConnectCustomer, type ConnectCustomerCreateInput, type ConnectCustomerEvent, type ConnectCustomerField, type ConnectCustomerListQuery, type ConnectCustomerNote, type ConnectCustomerRecord, type ConnectCustomerSummary, type ConnectCustomerTag, type ConnectCustomerUpdateInput, type ConnectEavEntity, type ConnectEavRecord, type ConnectFile, type ConnectFileListQuery, type ConnectFileSortField, type ConnectFileUsage, type ConnectFileVisibility, type ConnectFolder, type ConnectFolderKind, type ConnectForm, type ConnectFormStatus, type ConnectFormType, type ConnectInquiry, type ConnectInquiryDetail, type ConnectInquiryMoveResult, type ConnectMe, type ConnectMember, type ConnectMemberRole, type ConnectNotification, type ConnectNotificationKind, type ConnectOperation, type ConnectOperationRule, type ConnectPipeline, type ConnectPost, type ConnectPostAuthor, type ConnectPostCreateInput, type ConnectPostGroup, type ConnectPostGroupKind, type ConnectPostListQuery, type ConnectPostMetaInput, type ConnectPostSortField, type ConnectPostSpec, type ConnectPostStatus, type ConnectPostSummary, type ConnectPostTag, type ConnectPostUpdateInput, type ConnectRequestOptions, type ConnectScope, type ConnectSignedUrl, type ConnectSignedUrlOptions, type ConnectStageColor, type ConnectStageOutcome, type ConnectTask, type ConnectTaskActivity, type ConnectTaskComment, type ConnectTaskCreateInput, type ConnectTaskFeedItem, type ConnectTaskFeedMember, type ConnectTaskListQuery, type ConnectTaskMoveInput, type ConnectTaskPriority, type ConnectTaskSortField, type ConnectTaskUpdateInput, type ConnectWorkspaceTier, type CountedPage, type MentionSegment, PLATFORM_ERROR_CODES, type Page, type PageQuery, PlatformApiError, type PlatformErrorCode, type PlatformFieldError, type PlatformSdkErrorCode, type PlatformServerErrorCode, SDK_ERROR_CODES, type SortOf, WORKSPACE_PERMISSION_KEYS, type WorkspacePermissionKey, can, canAll, canAny, canCall, connectBrandSchema, type connectCustomerNoteSchema, type connectCustomerSchema, type connectCustomerSummarySchema, connectEavEntitySchema, connectEavRecordSchema, connectFileSchema, connectFileUsageSchema, connectFolderSchema, connectFormSchema, connectInquiryDetailSchema, type connectInquiryMoveResultSchema, connectInquirySchema, connectMeSchema, connectMemberSchema, type connectNotificationSchema, connectPipelineSchema, connectPostGroupSchema, connectPostSchema, connectPostSummarySchema, connectPostTagSchema, type connectTaskCommentSchema, type connectTaskFeedItemSchema, connectTaskSchema, createConnectClient, isNotImplemented, isPermissionDenied, isPlatformApiError, isPlatformError, isSignInRequired, iterate, listAll, mentionToken, splitMentions };
|
|
6
|
+
export { CONNECT_OPERATIONS, CONNECT_OPERATION_NAMES, CONNECT_SCOPES, type ConnectAccessToken, type ConnectAnswerValue, type ConnectBrand, type ConnectClient, type ConnectClientConfig, type ConnectCustomer, type ConnectCustomerCreateInput, type ConnectCustomerEvent, type ConnectCustomerField, type ConnectCustomerListQuery, type ConnectCustomerNote, type ConnectCustomerRecord, type ConnectCustomerSummary, type ConnectCustomerTag, type ConnectCustomerUpdateInput, type ConnectEavEntity, type ConnectEavRecord, type ConnectFile, type ConnectFileListQuery, type ConnectFileSortField, type ConnectFileUsage, type ConnectFileVisibility, type ConnectFolder, type ConnectFolderKind, type ConnectForm, type ConnectFormStatus, type ConnectFormType, type ConnectInquiry, type ConnectInquiryDetail, type ConnectInquiryListQuery, type ConnectInquiryMoveResult, type ConnectInquirySummary, type ConnectMe, type ConnectMember, type ConnectMemberRole, type ConnectNotification, type ConnectNotificationKind, type ConnectOperation, type ConnectOperationRule, type ConnectPipeline, type ConnectPost, type ConnectPostAuthor, type ConnectPostCreateInput, type ConnectPostGroup, type ConnectPostGroupKind, type ConnectPostListQuery, type ConnectPostMetaInput, type ConnectPostSortField, type ConnectPostSpec, type ConnectPostStatus, type ConnectPostSummary, type ConnectPostTag, type ConnectPostUpdateInput, type ConnectRequestOptions, type ConnectScope, type ConnectSignedUrl, type ConnectSignedUrlOptions, type ConnectStageColor, type ConnectStageOutcome, type ConnectTask, type ConnectTaskActivity, type ConnectTaskComment, type ConnectTaskCreateInput, type ConnectTaskFeedItem, type ConnectTaskFeedMember, type ConnectTaskListQuery, type ConnectTaskMoveInput, type ConnectTaskPriority, type ConnectTaskSortField, type ConnectTaskUpdateInput, type ConnectWorkspaceTier, type CountedPage, type MentionSegment, PLATFORM_ERROR_CODES, type Page, type PageQuery, PlatformApiError, type PlatformErrorCode, type PlatformFieldError, type PlatformSdkErrorCode, type PlatformServerErrorCode, SDK_ERROR_CODES, type SortOf, WORKSPACE_PERMISSION_KEYS, type WorkspacePermissionKey, can, canAll, canAny, canCall, connectBrandSchema, type connectCustomerNoteSchema, type connectCustomerSchema, type connectCustomerSummarySchema, connectEavEntitySchema, connectEavRecordSchema, connectFileSchema, connectFileUsageSchema, connectFolderSchema, connectFormSchema, connectInquiryDetailSchema, type connectInquiryMoveResultSchema, connectInquirySchema, type connectInquirySummarySchema, connectMeSchema, connectMemberSchema, type connectNotificationSchema, connectPipelineSchema, connectPostGroupSchema, connectPostSchema, connectPostSummarySchema, connectPostTagSchema, type connectTaskCommentSchema, type connectTaskFeedItemSchema, connectTaskSchema, createConnectClient, isNotImplemented, isPermissionDenied, isPlatformApiError, isPlatformError, isSignInRequired, iterate, listAll, mentionToken, splitMentions };
|
package/dist/connect.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as isPermissionDenied, c as isSignInRequired, i as isNotImplemented, n as PlatformApiError, o as isPlatformApiError, r as SDK_ERROR_CODES, s as isPlatformError, t as PLATFORM_ERROR_CODES } from "./errors-
|
|
1
|
+
import { a as isPermissionDenied, c as isSignInRequired, i as isNotImplemented, n as PlatformApiError, o as isPlatformApiError, r as SDK_ERROR_CODES, s as isPlatformError, t as PLATFORM_ERROR_CODES } from "./errors-Cnh-XDtf.js";
|
|
2
2
|
import { CONNECT_OPERATIONS, CONNECT_OPERATION_NAMES, CONNECT_SCOPES, WORKSPACE_PERMISSION_KEYS, can, canAll, canAny, canCall } from "./permissions.js";
|
|
3
3
|
import { mentionToken, splitMentions } from "./mentions.js";
|
|
4
|
-
import { _ as connectPostSummarySchema, a as connectEavRecordSchema, b as createConnectClient, c as connectFolderSchema, d as connectInquirySchema, f as connectMeSchema, g as connectPostSchema, h as connectPostGroupSchema, i as connectEavEntitySchema, l as connectFormSchema, m as connectPipelineSchema, n as listAll, o as connectFileSchema, p as connectMemberSchema, r as connectBrandSchema, s as connectFileUsageSchema, t as iterate, u as connectInquiryDetailSchema, v as connectPostTagSchema, y as connectTaskSchema } from "./page-
|
|
4
|
+
import { _ as connectPostSummarySchema, a as connectEavRecordSchema, b as createConnectClient, c as connectFolderSchema, d as connectInquirySchema, f as connectMeSchema, g as connectPostSchema, h as connectPostGroupSchema, i as connectEavEntitySchema, l as connectFormSchema, m as connectPipelineSchema, n as listAll, o as connectFileSchema, p as connectMemberSchema, r as connectBrandSchema, s as connectFileUsageSchema, t as iterate, u as connectInquiryDetailSchema, v as connectPostTagSchema, y as connectTaskSchema } from "./page-Ck2IVCQF.js";
|
|
5
5
|
|
|
6
6
|
export { CONNECT_OPERATIONS, CONNECT_OPERATION_NAMES, CONNECT_SCOPES, PLATFORM_ERROR_CODES, PlatformApiError, SDK_ERROR_CODES, WORKSPACE_PERMISSION_KEYS, can, canAll, canAny, canCall, connectBrandSchema, connectEavEntitySchema, connectEavRecordSchema, connectFileSchema, connectFileUsageSchema, connectFolderSchema, connectFormSchema, connectInquiryDetailSchema, connectInquirySchema, connectMeSchema, connectMemberSchema, connectPipelineSchema, connectPostGroupSchema, connectPostSchema, connectPostSummarySchema, connectPostTagSchema, connectTaskSchema, createConnectClient, isNotImplemented, isPermissionDenied, isPlatformApiError, isPlatformError, isSignInRequired, iterate, listAll, mentionToken, splitMentions };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//#region src/version.ts
|
|
2
2
|
/** 이 패키지(`@reopt-ai/workspace-sdk`)의 버전 — 빌드가 package.json에서 주입한다(미번들 실행은 `0.0.0-dev`). */
|
|
3
|
-
const SDK_VERSION = "0.1.0-rc.
|
|
3
|
+
const SDK_VERSION = "0.1.0-rc.15";
|
|
4
4
|
|
|
5
5
|
//#endregion
|
|
6
6
|
//#region src/workspace/errors.ts
|
|
@@ -120,4 +120,4 @@ function isPermissionDenied(error) {
|
|
|
120
120
|
|
|
121
121
|
//#endregion
|
|
122
122
|
export { isPermissionDenied as a, isSignInRequired as c, isNotImplemented as i, SDK_VERSION as l, PlatformApiError as n, isPlatformApiError as o, SDK_ERROR_CODES as r, isPlatformError as s, PLATFORM_ERROR_CODES as t };
|
|
123
|
-
//# sourceMappingURL=errors-
|
|
123
|
+
//# sourceMappingURL=errors-Cnh-XDtf.js.map
|
package/dist/forms.js
CHANGED
|
@@ -91,7 +91,10 @@ function createPublicFormClient(options = {}) {
|
|
|
91
91
|
credentials: "omit",
|
|
92
92
|
signal: controller.signal
|
|
93
93
|
});
|
|
94
|
-
body = await response.json().catch(() =>
|
|
94
|
+
body = await response.json().catch((cause) => {
|
|
95
|
+
if (controller.signal.aborted) throw cause;
|
|
96
|
+
return null;
|
|
97
|
+
});
|
|
95
98
|
} catch (cause) {
|
|
96
99
|
if (signal?.aborted && !timedOut) throw cause;
|
|
97
100
|
throw new PublicFormError(timedOut ? {
|
|
@@ -184,7 +187,7 @@ function answerText(value, options) {
|
|
|
184
187
|
if (typeof value.name === "string") return value.name;
|
|
185
188
|
if (typeof value.url === "string") return value.url;
|
|
186
189
|
}
|
|
187
|
-
return JSON.stringify(value);
|
|
190
|
+
return JSON.stringify(value) ?? "";
|
|
188
191
|
}
|
|
189
192
|
/**
|
|
190
193
|
* 제출된 답(`answers`)에 폼의 라벨을 붙인다 — 관리 화면이 필드 이름을 손으로 적지 않게.
|
|
@@ -201,7 +204,7 @@ function labelAnswers(fields, answers) {
|
|
|
201
204
|
const seen = /* @__PURE__ */ new Set();
|
|
202
205
|
const push = (name, label, options) => {
|
|
203
206
|
seen.add(name);
|
|
204
|
-
const value = answers[name];
|
|
207
|
+
const value = Object.hasOwn(answers, name) ? answers[name] : void 0;
|
|
205
208
|
const text = answerText(value, options);
|
|
206
209
|
if (text === "") return;
|
|
207
210
|
rows.push({
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as ConnectOperationRule, c as WorkspacePermissionKey, d as canAny, f as canCall, i as ConnectOperation, l as can, n as CONNECT_OPERATION_NAMES, o as ConnectScope, r as CONNECT_SCOPES, s as WORKSPACE_PERMISSION_KEYS, t as CONNECT_OPERATIONS, u as canAll } from "./permissions-
|
|
1
|
+
import { a as ConnectOperationRule, c as WorkspacePermissionKey, d as canAny, f as canCall, i as ConnectOperation, l as can, n as CONNECT_OPERATION_NAMES, o as ConnectScope, r as CONNECT_SCOPES, s as WORKSPACE_PERMISSION_KEYS, t as CONNECT_OPERATIONS, u as canAll } from "./permissions-D5-qPHua.js";
|
|
2
2
|
import { a as iterate, i as SortOf, n as Page, o as listAll, r as PageQuery, t as CountedPage } from "./page-j1OCu4of.js";
|
|
3
3
|
import { a as PlatformSdkErrorCode, c as isNotImplemented, d as isPlatformError, f as isSignInRequired, i as PlatformFieldError, l as isPermissionDenied, n as PlatformApiError, o as PlatformServerErrorCode, r as PlatformErrorCode, s as SDK_ERROR_CODES, t as PLATFORM_ERROR_CODES, u as isPlatformApiError } from "./errors-CLUuzCNG.js";
|
|
4
|
-
import { $ as
|
|
4
|
+
import { $ as ConnectSignedUrl, A as ConnectInquiryListQuery, At as connectMemberSchema, B as ConnectPostAuthor, Bt as createConnectClient, C as ConnectFolder, Ct as connectFolderSchema, D as ConnectFormType, Dt as connectInquirySchema, E as ConnectFormStatus, Et as connectInquiryMoveResultSchema, F as ConnectMemberRole, Ft as connectPostSummarySchema, G as ConnectPostMetaInput, H as ConnectPostGroup, I as ConnectNotification, It as connectPostTagSchema, J as ConnectPostStatus, K as ConnectPostSortField, L as ConnectNotificationKind, Lt as connectTaskCommentSchema, M as ConnectInquirySummary, Mt as connectPipelineSchema, N as ConnectMe, Nt as connectPostGroupSchema, O as ConnectInquiry, Ot as connectInquirySummarySchema, P as ConnectMember, Pt as connectPostSchema, Q as ConnectRequestOptions, R as ConnectPipeline, Rt as connectTaskFeedItemSchema, S as ConnectFileVisibility, St as connectFileUsageSchema, T as ConnectForm, Tt as connectInquiryDetailSchema, U as ConnectPostGroupKind, V as ConnectPostCreateInput, W as ConnectPostListQuery, X as ConnectPostTag, Y as ConnectPostSummary, Z as ConnectPostUpdateInput, _ as ConnectEavRecord, _t as connectCustomerSchema, a as ConnectClientConfig, at as ConnectTaskComment, b as ConnectFileSortField, bt as connectEavRecordSchema, c as ConnectCustomerEvent, ct as ConnectTaskFeedMember, d as ConnectCustomerNote, dt as ConnectTaskPriority, et as ConnectSignedUrlOptions, f as ConnectCustomerRecord, ft as ConnectTaskSortField, g as ConnectEavEntity, gt as connectCustomerNoteSchema, h as ConnectCustomerUpdateInput, ht as connectBrandSchema, i as ConnectClient, it as ConnectTaskActivity, j as ConnectInquiryMoveResult, jt as connectNotificationSchema, k as ConnectInquiryDetail, kt as connectMeSchema, l as ConnectCustomerField, lt as ConnectTaskListQuery, m as ConnectCustomerTag, mt as ConnectWorkspaceTier, n as ConnectAnswerValue, nt as ConnectStageOutcome, o as ConnectCustomer, ot as ConnectTaskCreateInput, p as ConnectCustomerSummary, pt as ConnectTaskUpdateInput, q as ConnectPostSpec, r as ConnectBrand, rt as ConnectTask, s as ConnectCustomerCreateInput, st as ConnectTaskFeedItem, t as ConnectAccessToken, tt as ConnectStageColor, u as ConnectCustomerListQuery, ut as ConnectTaskMoveInput, v as ConnectFile, vt as connectCustomerSummarySchema, w as ConnectFolderKind, wt as connectFormSchema, x as ConnectFileUsage, xt as connectFileSchema, y as ConnectFileListQuery, yt as connectEavEntitySchema, z as ConnectPost, zt as connectTaskSchema } from "./connect-aWLB141V.js";
|
|
5
5
|
import { n as mentionToken, r as splitMentions, t as MentionSegment } from "./mentions-BMI2c7O6.js";
|
|
6
6
|
import { a as REOPT_PLATFORM_URLS, c as resolvePlatformUrls, i as REOPT_PLATFORM_ID_URLS, n as PlatformUrls } from "./urls-DiYp_PHg.js";
|
|
7
|
-
import { $ as
|
|
8
|
-
export { CONNECT_OPERATIONS, CONNECT_OPERATION_NAMES, CONNECT_SCOPES, type ConnectAccessToken, type ConnectAnswerValue, type ConnectBrand, type ConnectClient, type ConnectClientConfig, type ConnectCustomer, type ConnectCustomerCreateInput, type ConnectCustomerEvent, type ConnectCustomerField, type ConnectCustomerListQuery, type ConnectCustomerNote, type ConnectCustomerRecord, type ConnectCustomerSummary, type ConnectCustomerTag, type ConnectCustomerUpdateInput, type ConnectEavEntity, type ConnectEavRecord, type ConnectFile, type ConnectFileListQuery, type ConnectFileSortField, type ConnectFileUsage, type ConnectFileVisibility, type ConnectFolder, type ConnectFolderKind, type ConnectForm, type ConnectFormStatus, type ConnectFormType, type ConnectInquiry, type ConnectInquiryDetail, type ConnectInquiryMoveResult, type ConnectMe, type ConnectMember, type ConnectMemberRole, type ConnectNotification, type ConnectNotificationKind, type ConnectOperation, type ConnectOperationRule, type ConnectPipeline, type ConnectPost, type ConnectPostAuthor, type ConnectPostCreateInput, type ConnectPostGroup, type ConnectPostGroupKind, type ConnectPostListQuery, type ConnectPostMetaInput, type ConnectPostSortField, type ConnectPostSpec, type ConnectPostStatus, type ConnectPostSummary, type ConnectPostTag, type ConnectPostUpdateInput, type ConnectRequestOptions, type ConnectScope, type ConnectSignedUrl, type ConnectSignedUrlOptions, type ConnectStageColor, type ConnectStageOutcome, type ConnectTask, type ConnectTaskActivity, type ConnectTaskComment, type ConnectTaskCreateInput, type ConnectTaskFeedItem, type ConnectTaskFeedMember, type ConnectTaskListQuery, type ConnectTaskMoveInput, type ConnectTaskPriority, type ConnectTaskSortField, type ConnectTaskUpdateInput, type ConnectWorkspaceTier, type CountedPage, DEFAULT_PLATFORM_SCOPES, type MentionSegment, PLATFORM_ADMIN_SCOPE, PLATFORM_BRANDAPP_STATUSES, PLATFORM_DOMAIN_STATUSES, PLATFORM_EAV_DATA_TYPES, PLATFORM_ERROR_CODES, PLATFORM_MANAGED_BY_VALUES, PLATFORM_OAUTH_APPLICATION_TYPES, PLATFORM_OAUTH_CLIENT_PURPOSES, PLATFORM_OAUTH_GRANT_TYPES, PLATFORM_STAGE_COLORS, PLATFORM_TASK_OUTCOMES, PLATFORM_TASK_PRIORITIES, PLATFORM_TOKEN_ENDPOINT_AUTH_METHODS, PLATFORM_WEBHOOK_TRIGGERS, type Page, type PageQuery, PlatformApiError, type PlatformBrandImportInput, type PlatformBrandResource, type PlatformBrandUpsertInput, type PlatformBrandappResource, type PlatformBrandappUpsertInput, type PlatformClient, type PlatformClientConfig, type PlatformCustomerUpsertInput, type PlatformDomainStatus, type PlatformEavBrandappResources, type PlatformEavDataType, type PlatformEavEntityResource, type PlatformEavSchemaApplyInput, type PlatformEavSchemaApplyResult, type PlatformEavSchemaOperation, type PlatformErrorBody, type PlatformErrorCode, type PlatformFieldError, type PlatformLockAcquired, type PlatformLockReleased, type PlatformManagedBy, type PlatformMe, type PlatformOAuthClientImportInput, type PlatformOAuthClientPurpose, type PlatformOAuthClientResource, type PlatformOAuthClientUpsertInput, type PlatformPipeline, type PlatformPipelineImportInput, type PlatformPipelineResource, type PlatformPipelineStageInput, type PlatformPipelineUpsertInput, type PlatformPublishedPost, type PlatformPublishedPostGetOptions, type PlatformPublishedPostListOptions, type PlatformPublishedPostPage, type PlatformPublishedPostSummary, type PlatformResources, type PlatformResourcesV2, type PlatformSdkErrorCode, type PlatformServerErrorCode, type PlatformStageColor, type PlatformTask, type PlatformTaskOutcome, type PlatformTaskPriority, type PlatformTaskStage, type PlatformTaskStageInput, type PlatformTaskUpsertInput, type PlatformUrls, type PlatformWebhook, type PlatformWebhookResource, type PlatformWebhookTrigger, type PlatformWebhookUpsertInput, type PlatformWorkTaskStageChangedEvent, type PlatformWriteMeta, type PlatformWriteResult, REOPT_PLATFORM_ID_URLS, REOPT_PLATFORM_URLS, SDK_ERROR_CODES, type SortOf, WORKSPACE_PERMISSION_KEYS, type WorkspacePermissionKey, can, canAll, canAny, canCall, connectBrandSchema, type connectCustomerNoteSchema, type connectCustomerSchema, type connectCustomerSummarySchema, connectEavEntitySchema, connectEavRecordSchema, connectFileSchema, connectFileUsageSchema, connectFolderSchema, connectFormSchema, connectInquiryDetailSchema, type connectInquiryMoveResultSchema, connectInquirySchema, connectMeSchema, connectMemberSchema, type connectNotificationSchema, connectPipelineSchema, connectPostGroupSchema, connectPostSchema, connectPostSummarySchema, connectPostTagSchema, type connectTaskCommentSchema, type connectTaskFeedItemSchema, connectTaskSchema, createConnectClient, createPlatformClient, isNotImplemented, isPermissionDenied, isPlatformApiError, isPlatformError, isSignInRequired, iterate, listAll, mentionToken, platformBrandImportInputSchema, platformBrandResourceSchema, platformBrandUpsertInputSchema, platformBrandappResourceSchema, platformBrandappUpsertInputSchema, platformCustomerUpsertInputSchema, platformEavBrandappResourcesSchema, platformEavEntityResourceSchema, platformEavSchemaApplyInputSchema, platformEavSchemaApplyResultSchema, platformEavSchemaOperationSchema, platformErrorSchema, platformExternalIdSchema, platformLockAcquiredSchema, platformLockReleasedSchema, platformMeSchema, platformOAuthClientImportInputSchema, platformOAuthClientResourceSchema, platformOAuthClientUpsertInputSchema, platformPipelineImportInputSchema, platformPipelineResourceSchema, platformPipelineSchema, platformPipelineStageInputSchema, platformPipelineUpsertInputSchema, platformPublishedPostDetailQuerySchema, platformPublishedPostListQuerySchema, platformPublishedPostPageSchema, platformPublishedPostSchema, platformPublishedPostSummarySchema, platformResourceKeySchema, platformResourcesSchema, platformResourcesV2Schema, platformTaskSchema, platformTaskStageInputSchema, platformTaskStageSchema, platformTaskUpsertInputSchema, platformWebhookResourceSchema, platformWebhookSchema, platformWebhookUpsertInputSchema, platformWorkTaskStageChangedEventSchema, platformWriteMetaSchema, resolvePlatformUrls, splitMentions };
|
|
7
|
+
import { $ as PlatformResources, $t as platformWebhookUpsertInputSchema, A as PlatformEavSchemaApplyInput, At as platformOAuthClientImportInputSchema, B as PlatformOAuthClientResource, Bt as platformPublishedPostListQuerySchema, C as PlatformBrandappResource, Ct as platformEavSchemaApplyResultSchema, D as PlatformEavBrandappResources, Dt as platformLockAcquiredSchema, E as PlatformDomainStatus, Et as platformExternalIdSchema, F as PlatformLockReleased, Ft as platformPipelineSchema, G as PlatformPipelineStageInput, Gt as platformResourcesSchema, H as PlatformPipeline, Ht as platformPublishedPostSchema, I as PlatformManagedBy, It as platformPipelineStageInputSchema, J as PlatformPublishedPost, Jt as platformTaskStageInputSchema, K as PlatformPipelineUpsertInput, Kt as platformResourcesV2Schema, L as PlatformMe, Lt as platformPipelineUpsertInputSchema, M as PlatformEavSchemaOperation, Mt as platformOAuthClientUpsertInputSchema, N as PlatformErrorBody, Nt as platformPipelineImportInputSchema, O as PlatformEavDataType, Ot as platformLockReleasedSchema, P as PlatformLockAcquired, Pt as platformPipelineResourceSchema, Q as PlatformPublishedPostSummary, Qt as platformWebhookSchema, R as PlatformOAuthClientImportInput, Rt as platformPostsChangedEventSchema, S as PlatformBrandUpsertInput, St as platformEavSchemaApplyInputSchema, T as PlatformCustomerUpsertInput, Tt as platformErrorSchema, U as PlatformPipelineImportInput, Ut as platformPublishedPostSummarySchema, V as PlatformOAuthClientUpsertInput, Vt as platformPublishedPostPageSchema, W as PlatformPipelineResource, Wt as platformResourceKeySchema, X as PlatformPublishedPostListOptions, Xt as platformTaskUpsertInputSchema, Y as PlatformPublishedPostGetOptions, Yt as platformTaskStageSchema, Z as PlatformPublishedPostPage, Zt as platformWebhookResourceSchema, _ as PLATFORM_TOKEN_ENDPOINT_AUTH_METHODS, _t as platformBrandappResourceSchema, a as createPlatformClient, at as PlatformTaskStage, b as PlatformBrandImportInput, bt as platformEavBrandappResourcesSchema, c as PLATFORM_DOMAIN_STATUSES, ct as PlatformWebhook, d as PLATFORM_OAUTH_APPLICATION_TYPES, dt as PlatformWebhookUpsertInput, en as platformWorkTaskStageChangedEventSchema, et as PlatformResourcesV2, f as PLATFORM_OAUTH_CLIENT_PURPOSES, ft as PlatformWorkTaskStageChangedEvent, g as PLATFORM_TASK_PRIORITIES, gt as platformBrandUpsertInputSchema, h as PLATFORM_TASK_OUTCOMES, ht as platformBrandResourceSchema, i as PlatformWriteResult, it as PlatformTaskPriority, j as PlatformEavSchemaApplyResult, jt as platformOAuthClientResourceSchema, k as PlatformEavEntityResource, kt as platformMeSchema, l as PLATFORM_EAV_DATA_TYPES, lt as PlatformWebhookResource, m as PLATFORM_STAGE_COLORS, mt as platformBrandImportInputSchema, n as PlatformClient, nt as PlatformTask, o as PLATFORM_ADMIN_SCOPE, ot as PlatformTaskStageInput, p as PLATFORM_OAUTH_GRANT_TYPES, pt as PlatformWriteMeta, q as PlatformPostsChangedEvent, qt as platformTaskSchema, r as PlatformClientConfig, rt as PlatformTaskOutcome, s as PLATFORM_BRANDAPP_STATUSES, st as PlatformTaskUpsertInput, t as DEFAULT_PLATFORM_SCOPES, tn as platformWriteMetaSchema, tt as PlatformStageColor, u as PLATFORM_MANAGED_BY_VALUES, ut as PlatformWebhookTrigger, v as PLATFORM_WEBHOOK_TRIGGERS, vt as platformBrandappUpsertInputSchema, w as PlatformBrandappUpsertInput, wt as platformEavSchemaOperationSchema, x as PlatformBrandResource, xt as platformEavEntityResourceSchema, y as PLATFORM_WEBHOOK_TRIGGER_SCOPES, yt as platformCustomerUpsertInputSchema, z as PlatformOAuthClientPurpose, zt as platformPublishedPostDetailQuerySchema } from "./client-C-J5e2Zo.js";
|
|
8
|
+
export { CONNECT_OPERATIONS, CONNECT_OPERATION_NAMES, CONNECT_SCOPES, type ConnectAccessToken, type ConnectAnswerValue, type ConnectBrand, type ConnectClient, type ConnectClientConfig, type ConnectCustomer, type ConnectCustomerCreateInput, type ConnectCustomerEvent, type ConnectCustomerField, type ConnectCustomerListQuery, type ConnectCustomerNote, type ConnectCustomerRecord, type ConnectCustomerSummary, type ConnectCustomerTag, type ConnectCustomerUpdateInput, type ConnectEavEntity, type ConnectEavRecord, type ConnectFile, type ConnectFileListQuery, type ConnectFileSortField, type ConnectFileUsage, type ConnectFileVisibility, type ConnectFolder, type ConnectFolderKind, type ConnectForm, type ConnectFormStatus, type ConnectFormType, type ConnectInquiry, type ConnectInquiryDetail, type ConnectInquiryListQuery, type ConnectInquiryMoveResult, type ConnectInquirySummary, type ConnectMe, type ConnectMember, type ConnectMemberRole, type ConnectNotification, type ConnectNotificationKind, type ConnectOperation, type ConnectOperationRule, type ConnectPipeline, type ConnectPost, type ConnectPostAuthor, type ConnectPostCreateInput, type ConnectPostGroup, type ConnectPostGroupKind, type ConnectPostListQuery, type ConnectPostMetaInput, type ConnectPostSortField, type ConnectPostSpec, type ConnectPostStatus, type ConnectPostSummary, type ConnectPostTag, type ConnectPostUpdateInput, type ConnectRequestOptions, type ConnectScope, type ConnectSignedUrl, type ConnectSignedUrlOptions, type ConnectStageColor, type ConnectStageOutcome, type ConnectTask, type ConnectTaskActivity, type ConnectTaskComment, type ConnectTaskCreateInput, type ConnectTaskFeedItem, type ConnectTaskFeedMember, type ConnectTaskListQuery, type ConnectTaskMoveInput, type ConnectTaskPriority, type ConnectTaskSortField, type ConnectTaskUpdateInput, type ConnectWorkspaceTier, type CountedPage, DEFAULT_PLATFORM_SCOPES, type MentionSegment, PLATFORM_ADMIN_SCOPE, PLATFORM_BRANDAPP_STATUSES, PLATFORM_DOMAIN_STATUSES, PLATFORM_EAV_DATA_TYPES, PLATFORM_ERROR_CODES, PLATFORM_MANAGED_BY_VALUES, PLATFORM_OAUTH_APPLICATION_TYPES, PLATFORM_OAUTH_CLIENT_PURPOSES, PLATFORM_OAUTH_GRANT_TYPES, PLATFORM_STAGE_COLORS, PLATFORM_TASK_OUTCOMES, PLATFORM_TASK_PRIORITIES, PLATFORM_TOKEN_ENDPOINT_AUTH_METHODS, PLATFORM_WEBHOOK_TRIGGERS, PLATFORM_WEBHOOK_TRIGGER_SCOPES, type Page, type PageQuery, PlatformApiError, type PlatformBrandImportInput, type PlatformBrandResource, type PlatformBrandUpsertInput, type PlatformBrandappResource, type PlatformBrandappUpsertInput, type PlatformClient, type PlatformClientConfig, type PlatformCustomerUpsertInput, type PlatformDomainStatus, type PlatformEavBrandappResources, type PlatformEavDataType, type PlatformEavEntityResource, type PlatformEavSchemaApplyInput, type PlatformEavSchemaApplyResult, type PlatformEavSchemaOperation, type PlatformErrorBody, type PlatformErrorCode, type PlatformFieldError, type PlatformLockAcquired, type PlatformLockReleased, type PlatformManagedBy, type PlatformMe, type PlatformOAuthClientImportInput, type PlatformOAuthClientPurpose, type PlatformOAuthClientResource, type PlatformOAuthClientUpsertInput, type PlatformPipeline, type PlatformPipelineImportInput, type PlatformPipelineResource, type PlatformPipelineStageInput, type PlatformPipelineUpsertInput, type PlatformPostsChangedEvent, type PlatformPublishedPost, type PlatformPublishedPostGetOptions, type PlatformPublishedPostListOptions, type PlatformPublishedPostPage, type PlatformPublishedPostSummary, type PlatformResources, type PlatformResourcesV2, type PlatformSdkErrorCode, type PlatformServerErrorCode, type PlatformStageColor, type PlatformTask, type PlatformTaskOutcome, type PlatformTaskPriority, type PlatformTaskStage, type PlatformTaskStageInput, type PlatformTaskUpsertInput, type PlatformUrls, type PlatformWebhook, type PlatformWebhookResource, type PlatformWebhookTrigger, type PlatformWebhookUpsertInput, type PlatformWorkTaskStageChangedEvent, type PlatformWriteMeta, type PlatformWriteResult, REOPT_PLATFORM_ID_URLS, REOPT_PLATFORM_URLS, SDK_ERROR_CODES, type SortOf, WORKSPACE_PERMISSION_KEYS, type WorkspacePermissionKey, can, canAll, canAny, canCall, connectBrandSchema, type connectCustomerNoteSchema, type connectCustomerSchema, type connectCustomerSummarySchema, connectEavEntitySchema, connectEavRecordSchema, connectFileSchema, connectFileUsageSchema, connectFolderSchema, connectFormSchema, connectInquiryDetailSchema, type connectInquiryMoveResultSchema, connectInquirySchema, type connectInquirySummarySchema, connectMeSchema, connectMemberSchema, type connectNotificationSchema, connectPipelineSchema, connectPostGroupSchema, connectPostSchema, connectPostSummarySchema, connectPostTagSchema, type connectTaskCommentSchema, type connectTaskFeedItemSchema, connectTaskSchema, createConnectClient, createPlatformClient, isNotImplemented, isPermissionDenied, isPlatformApiError, isPlatformError, isSignInRequired, iterate, listAll, mentionToken, platformBrandImportInputSchema, platformBrandResourceSchema, platformBrandUpsertInputSchema, platformBrandappResourceSchema, platformBrandappUpsertInputSchema, platformCustomerUpsertInputSchema, platformEavBrandappResourcesSchema, platformEavEntityResourceSchema, platformEavSchemaApplyInputSchema, platformEavSchemaApplyResultSchema, platformEavSchemaOperationSchema, platformErrorSchema, platformExternalIdSchema, platformLockAcquiredSchema, platformLockReleasedSchema, platformMeSchema, platformOAuthClientImportInputSchema, platformOAuthClientResourceSchema, platformOAuthClientUpsertInputSchema, platformPipelineImportInputSchema, platformPipelineResourceSchema, platformPipelineSchema, platformPipelineStageInputSchema, platformPipelineUpsertInputSchema, platformPostsChangedEventSchema, platformPublishedPostDetailQuerySchema, platformPublishedPostListQuerySchema, platformPublishedPostPageSchema, platformPublishedPostSchema, platformPublishedPostSummarySchema, platformResourceKeySchema, platformResourcesSchema, platformResourcesV2Schema, platformTaskSchema, platformTaskStageInputSchema, platformTaskStageSchema, platformTaskUpsertInputSchema, platformWebhookResourceSchema, platformWebhookSchema, platformWebhookUpsertInputSchema, platformWorkTaskStageChangedEventSchema, platformWriteMetaSchema, resolvePlatformUrls, splitMentions };
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as isPermissionDenied, c as isSignInRequired, i as isNotImplemented, n as PlatformApiError, o as isPlatformApiError, r as SDK_ERROR_CODES, s as isPlatformError, t as PLATFORM_ERROR_CODES } from "./errors-
|
|
1
|
+
import { a as isPermissionDenied, c as isSignInRequired, i as isNotImplemented, n as PlatformApiError, o as isPlatformApiError, r as SDK_ERROR_CODES, s as isPlatformError, t as PLATFORM_ERROR_CODES } from "./errors-Cnh-XDtf.js";
|
|
2
2
|
import { REOPT_PLATFORM_ID_URLS, REOPT_PLATFORM_URLS, resolvePlatformUrls } from "./urls.js";
|
|
3
|
-
import { $ as
|
|
4
|
-
import { n as createPlatformClient, t as DEFAULT_PLATFORM_SCOPES } from "./client-
|
|
3
|
+
import { $ as platformWebhookSchema, A as platformMeSchema, B as platformPublishedPostDetailQuerySchema, C as platformEavSchemaApplyInputSchema, D as platformExternalIdSchema, E as platformErrorSchema, F as platformPipelineResourceSchema, G as platformResourceKeySchema, H as platformPublishedPostPageSchema, I as platformPipelineSchema, J as platformTaskSchema, K as platformResourcesSchema, L as platformPipelineStageInputSchema, M as platformOAuthClientResourceSchema, N as platformOAuthClientUpsertInputSchema, O as platformLockAcquiredSchema, P as platformPipelineImportInputSchema, Q as platformWebhookResourceSchema, R as platformPipelineUpsertInputSchema, S as platformEavEntityResourceSchema, T as platformEavSchemaOperationSchema, U as platformPublishedPostSchema, V as platformPublishedPostListQuerySchema, W as platformPublishedPostSummarySchema, X as platformTaskStageSchema, Y as platformTaskStageInputSchema, Z as platformTaskUpsertInputSchema, _ as platformBrandUpsertInputSchema, a as PLATFORM_MANAGED_BY_VALUES, b as platformCustomerUpsertInputSchema, c as PLATFORM_OAUTH_GRANT_TYPES, d as PLATFORM_TASK_PRIORITIES, et as platformWebhookUpsertInputSchema, f as PLATFORM_TOKEN_ENDPOINT_AUTH_METHODS, g as platformBrandResourceSchema, h as platformBrandImportInputSchema, i as PLATFORM_EAV_DATA_TYPES, j as platformOAuthClientImportInputSchema, k as platformLockReleasedSchema, l as PLATFORM_STAGE_COLORS, m as PLATFORM_WEBHOOK_TRIGGER_SCOPES, n as PLATFORM_BRANDAPP_STATUSES, nt as platformWriteMetaSchema, o as PLATFORM_OAUTH_APPLICATION_TYPES, p as PLATFORM_WEBHOOK_TRIGGERS, q as platformResourcesV2Schema, r as PLATFORM_DOMAIN_STATUSES, s as PLATFORM_OAUTH_CLIENT_PURPOSES, t as PLATFORM_ADMIN_SCOPE, tt as platformWorkTaskStageChangedEventSchema, u as PLATFORM_TASK_OUTCOMES, v as platformBrandappResourceSchema, w as platformEavSchemaApplyResultSchema, x as platformEavBrandappResourcesSchema, y as platformBrandappUpsertInputSchema, z as platformPostsChangedEventSchema } from "./schemas-BBUKRn_G.js";
|
|
4
|
+
import { n as createPlatformClient, t as DEFAULT_PLATFORM_SCOPES } from "./client-BqdU2uJM.js";
|
|
5
5
|
import { CONNECT_OPERATIONS, CONNECT_OPERATION_NAMES, CONNECT_SCOPES, WORKSPACE_PERMISSION_KEYS, can, canAll, canAny, canCall } from "./permissions.js";
|
|
6
6
|
import { mentionToken, splitMentions } from "./mentions.js";
|
|
7
|
-
import { _ as connectPostSummarySchema, a as connectEavRecordSchema, b as createConnectClient, c as connectFolderSchema, d as connectInquirySchema, f as connectMeSchema, g as connectPostSchema, h as connectPostGroupSchema, i as connectEavEntitySchema, l as connectFormSchema, m as connectPipelineSchema, n as listAll, o as connectFileSchema, p as connectMemberSchema, r as connectBrandSchema, s as connectFileUsageSchema, t as iterate, u as connectInquiryDetailSchema, v as connectPostTagSchema, y as connectTaskSchema } from "./page-
|
|
7
|
+
import { _ as connectPostSummarySchema, a as connectEavRecordSchema, b as createConnectClient, c as connectFolderSchema, d as connectInquirySchema, f as connectMeSchema, g as connectPostSchema, h as connectPostGroupSchema, i as connectEavEntitySchema, l as connectFormSchema, m as connectPipelineSchema, n as listAll, o as connectFileSchema, p as connectMemberSchema, r as connectBrandSchema, s as connectFileUsageSchema, t as iterate, u as connectInquiryDetailSchema, v as connectPostTagSchema, y as connectTaskSchema } from "./page-Ck2IVCQF.js";
|
|
8
8
|
|
|
9
|
-
export { CONNECT_OPERATIONS, CONNECT_OPERATION_NAMES, CONNECT_SCOPES, DEFAULT_PLATFORM_SCOPES, PLATFORM_ADMIN_SCOPE, PLATFORM_BRANDAPP_STATUSES, PLATFORM_DOMAIN_STATUSES, PLATFORM_EAV_DATA_TYPES, PLATFORM_ERROR_CODES, PLATFORM_MANAGED_BY_VALUES, PLATFORM_OAUTH_APPLICATION_TYPES, PLATFORM_OAUTH_CLIENT_PURPOSES, PLATFORM_OAUTH_GRANT_TYPES, PLATFORM_STAGE_COLORS, PLATFORM_TASK_OUTCOMES, PLATFORM_TASK_PRIORITIES, PLATFORM_TOKEN_ENDPOINT_AUTH_METHODS, PLATFORM_WEBHOOK_TRIGGERS, PlatformApiError, REOPT_PLATFORM_ID_URLS, REOPT_PLATFORM_URLS, SDK_ERROR_CODES, WORKSPACE_PERMISSION_KEYS, can, canAll, canAny, canCall, connectBrandSchema, connectEavEntitySchema, connectEavRecordSchema, connectFileSchema, connectFileUsageSchema, connectFolderSchema, connectFormSchema, connectInquiryDetailSchema, connectInquirySchema, connectMeSchema, connectMemberSchema, connectPipelineSchema, connectPostGroupSchema, connectPostSchema, connectPostSummarySchema, connectPostTagSchema, connectTaskSchema, createConnectClient, createPlatformClient, isNotImplemented, isPermissionDenied, isPlatformApiError, isPlatformError, isSignInRequired, iterate, listAll, mentionToken, platformBrandImportInputSchema, platformBrandResourceSchema, platformBrandUpsertInputSchema, platformBrandappResourceSchema, platformBrandappUpsertInputSchema, platformCustomerUpsertInputSchema, platformEavBrandappResourcesSchema, platformEavEntityResourceSchema, platformEavSchemaApplyInputSchema, platformEavSchemaApplyResultSchema, platformEavSchemaOperationSchema, platformErrorSchema, platformExternalIdSchema, platformLockAcquiredSchema, platformLockReleasedSchema, platformMeSchema, platformOAuthClientImportInputSchema, platformOAuthClientResourceSchema, platformOAuthClientUpsertInputSchema, platformPipelineImportInputSchema, platformPipelineResourceSchema, platformPipelineSchema, platformPipelineStageInputSchema, platformPipelineUpsertInputSchema, platformPublishedPostDetailQuerySchema, platformPublishedPostListQuerySchema, platformPublishedPostPageSchema, platformPublishedPostSchema, platformPublishedPostSummarySchema, platformResourceKeySchema, platformResourcesSchema, platformResourcesV2Schema, platformTaskSchema, platformTaskStageInputSchema, platformTaskStageSchema, platformTaskUpsertInputSchema, platformWebhookResourceSchema, platformWebhookSchema, platformWebhookUpsertInputSchema, platformWorkTaskStageChangedEventSchema, platformWriteMetaSchema, resolvePlatformUrls, splitMentions };
|
|
9
|
+
export { CONNECT_OPERATIONS, CONNECT_OPERATION_NAMES, CONNECT_SCOPES, DEFAULT_PLATFORM_SCOPES, PLATFORM_ADMIN_SCOPE, PLATFORM_BRANDAPP_STATUSES, PLATFORM_DOMAIN_STATUSES, PLATFORM_EAV_DATA_TYPES, PLATFORM_ERROR_CODES, PLATFORM_MANAGED_BY_VALUES, PLATFORM_OAUTH_APPLICATION_TYPES, PLATFORM_OAUTH_CLIENT_PURPOSES, PLATFORM_OAUTH_GRANT_TYPES, PLATFORM_STAGE_COLORS, PLATFORM_TASK_OUTCOMES, PLATFORM_TASK_PRIORITIES, PLATFORM_TOKEN_ENDPOINT_AUTH_METHODS, PLATFORM_WEBHOOK_TRIGGERS, PLATFORM_WEBHOOK_TRIGGER_SCOPES, PlatformApiError, REOPT_PLATFORM_ID_URLS, REOPT_PLATFORM_URLS, SDK_ERROR_CODES, WORKSPACE_PERMISSION_KEYS, can, canAll, canAny, canCall, connectBrandSchema, connectEavEntitySchema, connectEavRecordSchema, connectFileSchema, connectFileUsageSchema, connectFolderSchema, connectFormSchema, connectInquiryDetailSchema, connectInquirySchema, connectMeSchema, connectMemberSchema, connectPipelineSchema, connectPostGroupSchema, connectPostSchema, connectPostSummarySchema, connectPostTagSchema, connectTaskSchema, createConnectClient, createPlatformClient, isNotImplemented, isPermissionDenied, isPlatformApiError, isPlatformError, isSignInRequired, iterate, listAll, mentionToken, platformBrandImportInputSchema, platformBrandResourceSchema, platformBrandUpsertInputSchema, platformBrandappResourceSchema, platformBrandappUpsertInputSchema, platformCustomerUpsertInputSchema, platformEavBrandappResourcesSchema, platformEavEntityResourceSchema, platformEavSchemaApplyInputSchema, platformEavSchemaApplyResultSchema, platformEavSchemaOperationSchema, platformErrorSchema, platformExternalIdSchema, platformLockAcquiredSchema, platformLockReleasedSchema, platformMeSchema, platformOAuthClientImportInputSchema, platformOAuthClientResourceSchema, platformOAuthClientUpsertInputSchema, platformPipelineImportInputSchema, platformPipelineResourceSchema, platformPipelineSchema, platformPipelineStageInputSchema, platformPipelineUpsertInputSchema, platformPostsChangedEventSchema, platformPublishedPostDetailQuerySchema, platformPublishedPostListQuerySchema, platformPublishedPostPageSchema, platformPublishedPostSchema, platformPublishedPostSummarySchema, platformResourceKeySchema, platformResourcesSchema, platformResourcesV2Schema, platformTaskSchema, platformTaskStageInputSchema, platformTaskStageSchema, platformTaskUpsertInputSchema, platformWebhookResourceSchema, platformWebhookSchema, platformWebhookUpsertInputSchema, platformWorkTaskStageChangedEventSchema, platformWriteMetaSchema, resolvePlatformUrls, splitMentions };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as ClientPrivateJwk, r as ClientKeyRing } from "../keys-BXkGh0VM.js";
|
|
2
2
|
import { n as PlatformUrls } from "../urls-DiYp_PHg.js";
|
|
3
|
-
import {
|
|
3
|
+
import { Lt as platformPipelineUpsertInputSchema, f as PLATFORM_OAUTH_CLIENT_PURPOSES, gt as platformBrandUpsertInputSchema, v as PLATFORM_WEBHOOK_TRIGGERS, vt as platformBrandappUpsertInputSchema } from "../client-C-J5e2Zo.js";
|
|
4
4
|
import { t as MachineClient } from "../client-DVozA5Ep.js";
|
|
5
5
|
import * as jose from "jose";
|
|
6
6
|
import { z } from "zod";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { l as SDK_VERSION, n as PlatformApiError } from "../errors-
|
|
1
|
+
import { l as SDK_VERSION, n as PlatformApiError } from "../errors-Cnh-XDtf.js";
|
|
2
2
|
import { resolvePlatformUrls } from "../urls.js";
|
|
3
3
|
import { o as readClientKeyRing } from "../keys--ef_VwZ-.js";
|
|
4
4
|
import { r as createMachineClient } from "../client-BLaFMBbS.js";
|
|
5
|
-
import {
|
|
5
|
+
import { E as platformErrorSchema, G as platformResourceKeySchema, R as platformPipelineUpsertInputSchema, _ as platformBrandUpsertInputSchema, m as PLATFORM_WEBHOOK_TRIGGER_SCOPES, p as PLATFORM_WEBHOOK_TRIGGERS, s as PLATFORM_OAUTH_CLIENT_PURPOSES, y as platformBrandappUpsertInputSchema } from "../schemas-BBUKRn_G.js";
|
|
6
6
|
import * as jose from "jose";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
|
|
@@ -119,6 +119,21 @@ const installationManifestSchema = z.object({
|
|
|
119
119
|
path: ["workspace", "brandapps"],
|
|
120
120
|
message: "workspace apps do not declare brandapps"
|
|
121
121
|
});
|
|
122
|
+
const requested = new Set(value.clients.flatMap((client) => client.scopes));
|
|
123
|
+
for (const [key, webhook] of Object.entries(value.workspace.webhooks ?? {})) for (const trigger of webhook.triggers) {
|
|
124
|
+
if (trigger === "workTaskStageChanged") continue;
|
|
125
|
+
const scope = PLATFORM_WEBHOOK_TRIGGER_SCOPES[trigger];
|
|
126
|
+
if (!requested.has(scope) && !requested.has("workspace:admin")) ctx.addIssue({
|
|
127
|
+
code: "custom",
|
|
128
|
+
path: [
|
|
129
|
+
"workspace",
|
|
130
|
+
"webhooks",
|
|
131
|
+
key,
|
|
132
|
+
"triggers"
|
|
133
|
+
],
|
|
134
|
+
message: `${trigger} needs a client that requests ${scope}`
|
|
135
|
+
});
|
|
136
|
+
}
|
|
122
137
|
if (value.exp <= value.iat) ctx.addIssue({
|
|
123
138
|
code: "custom",
|
|
124
139
|
path: ["exp"],
|
|
@@ -43,8 +43,10 @@ async function runKeygen(argv, out = console) {
|
|
|
43
43
|
out.log(`# export const GET = () => Response.json(buildClientJwks(readClientKeyRing()!.published));`);
|
|
44
44
|
out.log(`# 3) 리옵트 콘솔(연동 › 자격)의 jwksUri에 https://<your-host>${CLIENT_JWKS_PATH} 를 적는다`);
|
|
45
45
|
if (next) {
|
|
46
|
-
out.log(`# 회전 ①: 두 키가 JWKS에 함께
|
|
47
|
-
out.log(`#
|
|
46
|
+
out.log(`# 회전 ①: 배포하면 두 키가 JWKS에 함께 실린다. 서명은 아직 지금 키로 한다.`);
|
|
47
|
+
out.log(`# 회전 ②: 리옵트가 새 키를 알게 한다 — 콘솔 연동 상세의 "공개키 다시 읽기"로 새 kid가 등록됐는지 확인한다`);
|
|
48
|
+
out.log(`# (jwksUri를 그때그때 읽는 클라이언트는 5분 기다린다).`);
|
|
49
|
+
out.log(`# 회전 ③: NEXT 값을 REOPT_CLIENT_PRIVATE_KEY_JWK로 옮기고 NEXT를 지워 배포한다 — 이때부터 새 키로 서명한다.`);
|
|
48
50
|
}
|
|
49
51
|
return 0;
|
|
50
52
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as PlatformApiError } from "./errors-
|
|
2
|
-
import { t as createTransport } from "./transport-
|
|
1
|
+
import { n as PlatformApiError } from "./errors-Cnh-XDtf.js";
|
|
2
|
+
import { t as createTransport } from "./transport-C8zLAgkC.js";
|
|
3
3
|
import { resolvePlatformUrls } from "./urls.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
@@ -231,6 +231,15 @@ const connectNotificationSchema = z.looseObject({
|
|
|
231
231
|
id: z.string()
|
|
232
232
|
}).nullable()
|
|
233
233
|
});
|
|
234
|
+
const connectInquirySummarySchema = z.looseObject({
|
|
235
|
+
total: z.number(),
|
|
236
|
+
byStage: z.array(z.looseObject({
|
|
237
|
+
stageId: z.string().nullable(),
|
|
238
|
+
count: z.number()
|
|
239
|
+
})),
|
|
240
|
+
last7Days: z.number(),
|
|
241
|
+
previous7Days: z.number()
|
|
242
|
+
});
|
|
234
243
|
const connectFormSchema = z.looseObject({
|
|
235
244
|
id: z.string(),
|
|
236
245
|
name: z.string(),
|
|
@@ -615,16 +624,32 @@ function createConnectClient(config) {
|
|
|
615
624
|
deleteRecord: (entityId, recordId, options) => one("DELETE", `/eav/entities/${enc(entityId)}/records/${enc(recordId)}`, idResult, options)
|
|
616
625
|
},
|
|
617
626
|
inquiries: {
|
|
618
|
-
list: (
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
627
|
+
list: async (query, options) => {
|
|
628
|
+
const { formIds, stageIds, limit, submittedAfter, submittedBefore } = query;
|
|
629
|
+
if (stageIds && stageIds.length === 0) return {
|
|
630
|
+
items: [],
|
|
631
|
+
nextOffset: null
|
|
632
|
+
};
|
|
633
|
+
return page(`/inquiries${queryString({
|
|
634
|
+
formId: formIds,
|
|
635
|
+
stageId: stageIds,
|
|
636
|
+
customerId: query.customerId,
|
|
637
|
+
submittedAfter: isoParam(submittedAfter),
|
|
638
|
+
submittedBefore: isoParam(submittedBefore),
|
|
639
|
+
limit: limit ?? DEFAULT_LIMIT.inquiries,
|
|
640
|
+
offset: query.offset
|
|
641
|
+
})}`, connectInquirySchema, options);
|
|
642
|
+
},
|
|
643
|
+
summary: ({ formIds }, options) => one("GET", `/inquiries/summary${queryString({ formId: formIds })}`, connectInquirySummarySchema, options),
|
|
623
644
|
get: (submissionId, options) => one("GET", `/inquiries/${enc(submissionId)}`, connectInquiryDetailSchema, options),
|
|
624
645
|
moveStage: (submissionId, stageId, options) => one("POST", `/inquiries/${enc(submissionId)}/stage`, connectInquiryMoveResultSchema, options, { stageId })
|
|
625
646
|
}
|
|
626
647
|
};
|
|
627
648
|
}
|
|
649
|
+
/** 시각 쿼리 — `Date`는 ISO 문자열로 */
|
|
650
|
+
function isoParam(value) {
|
|
651
|
+
return value instanceof Date ? value.toISOString() : value;
|
|
652
|
+
}
|
|
628
653
|
const SIGNED_URL_BATCH = 100;
|
|
629
654
|
const LEGACY_UNKNOWN_ROUTE_MESSAGE = "Platform API accepts machine tokens only";
|
|
630
655
|
/** `ifVersion: null`(버전을 싣지 않는 옛 서버에서 읽은 값)은 보내지 않는다 — 서버는 문자열만 받는다. */
|
|
@@ -668,4 +693,4 @@ async function listAll(fetchPage, query, options = {}) {
|
|
|
668
693
|
|
|
669
694
|
//#endregion
|
|
670
695
|
export { connectPostSummarySchema as _, connectEavRecordSchema as a, createConnectClient as b, connectFolderSchema as c, connectInquirySchema as d, connectMeSchema as f, connectPostSchema as g, connectPostGroupSchema as h, connectEavEntitySchema as i, connectFormSchema as l, connectPipelineSchema as m, listAll as n, connectFileSchema as o, connectMemberSchema as p, connectBrandSchema as r, connectFileUsageSchema as s, iterate as t, connectInquiryDetailSchema as u, connectPostTagSchema as v, connectTaskSchema as y };
|
|
671
|
-
//# sourceMappingURL=page-
|
|
696
|
+
//# sourceMappingURL=page-Ck2IVCQF.js.map
|