@reopt-ai/workspace-sdk 0.1.0-rc.10 → 0.1.0-rc.11
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 +31 -0
- package/dist/{client-BF4-fVag.d.ts → client-ByIjKnf3.d.ts} +2 -2
- package/dist/{client-BOl6q9Q5.js → client-WEomQekp.js} +3 -3
- package/dist/{connect-ukgmn0Fx.d.ts → connect-BBf9QfQB.d.ts} +154 -4
- package/dist/connect.d.ts +5 -5
- package/dist/connect.js +3 -3
- package/dist/{errors-CqgpUVKp.js → errors-C5_fhcqb.js} +13 -4
- package/dist/{errors-VxWmrlix.d.ts → errors-DLJlABJL.d.ts} +8 -3
- package/dist/index.d.ts +6 -6
- package/dist/index.js +4 -4
- package/dist/installation/index.d.ts +1 -1
- package/dist/installation/index.js +1 -1
- package/dist/{page-BB2P_WUd.d.ts → page-79Ab4UGQ.d.ts} +3 -1
- package/dist/{page-D9XyBLLC.js → page-SjWh1rqY.js} +118 -8
- package/dist/{permissions-CyEr04jl.d.ts → permissions-COCbNJeQ.d.ts} +4 -2
- package/dist/permissions.d.ts +1 -1
- package/dist/permissions.js +37 -1
- package/dist/social/index.d.ts +2 -2
- package/dist/social/index.js +2 -2
- package/dist/testing/index.d.ts +35 -6
- package/dist/testing/index.js +395 -7
- package/dist/{transport-BuVYzuQz.js → transport-CN64IoHx.js} +5 -4
- package/docs/testing.md +12 -7
- package/docs/workspace.md +64 -36
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,37 @@ This project adheres to [Semantic Versioning](https://semver.org/).
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.1.0-rc.11] — 2026-11-22
|
|
11
|
+
|
|
12
|
+
Pre-release (`npm i @reopt-ai/workspace-sdk@next`). 깨지는 변경 없음.
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
|
|
16
|
+
- **고객(CRM)** — `reopt.customers`: `list`(검색·태그·기록 종류·여정·브랜드·기간, `total` 포함)·`get`·`create`·`update`·
|
|
17
|
+
`updateTags`·`listTags`·`listFields`·`listNotes`·`addNote`·`updateNote`·`deleteNote`·`timeline`. 코어는 Studio·CLI와 같은
|
|
18
|
+
함수다(연락처 정규화·충돌 판정·커스텀 필드 검증).
|
|
19
|
+
- 명부는 연락처라 읽기는 `customer:read` scope, 쓰기는 `workspace:write`에 **더해** `customer:read`가 필요하다
|
|
20
|
+
(`CONNECT_OPERATIONS[…].alsoScopes`, `canCall`이 함께 본다). 리옵트는 명부 읽기를 감사에 남긴다.
|
|
21
|
+
- 연락처가 다른 고객과 겹치면 409 **`CONTACT_TAKEN`**(새 코드) — `error.fieldMap()`이 `email`·`phoneNumber`를 짚는다.
|
|
22
|
+
`create({ onConflict: "link" })`는 그 고객에 덧붙이고 그 고객을 돌려준다.
|
|
23
|
+
- **`NOT_IMPLEMENTED`(501)·`isNotImplemented(error)`** — 서버에 그 라우트가 없다(서버가 SDK보다 오래됐다). 화면에서 그 기능을
|
|
24
|
+
"아직 쓸 수 없음"으로 보이게 한다. 🔴 예전 서버는 위임 표면에 없는 경로에 **401**("machine tokens only")로 답했다 — 새 SDK를
|
|
25
|
+
먼저 올린 앱이 그것을 "다시 로그인"으로 읽어 로그인 루프에 빠진다. 이 버전의 클라이언트는 그 401도 `NOT_IMPLEMENTED`로
|
|
26
|
+
맞춰 던진다(서버도 501로 고쳤다).
|
|
27
|
+
- `Page.total` — 서버가 세는 목록(`customers.list`)에 전체 건수가 실린다.
|
|
28
|
+
- `/testing` — 고객(`seed.customers`·`customerFields`)과 위 규칙, `seed.pipelines[].stages[].isEntry`(시작 단계 지정),
|
|
29
|
+
폼 선택지 `{ value, label }`, `machine.clientName`. `requests`는 최근 1,000건만 남긴다.
|
|
30
|
+
|
|
31
|
+
### Changed
|
|
32
|
+
|
|
33
|
+
- **id 모양이 아닌 값은 404 `NOT_FOUND`다**(예전엔 400 `VALIDATION_ERROR`) — `getTask("아무거나")`가 "그런 것이 없다"로
|
|
34
|
+
답해 잘못된 주소가 404 화면으로 간다. 위임 표면의 id 자리 전부.
|
|
35
|
+
|
|
36
|
+
### Fixed
|
|
37
|
+
|
|
38
|
+
- `/testing` — 글 주소를 영문 소문자·숫자·하이픈만 받던 것(실제 서버는 1~64자면 한글도 받는다), id 모양이 아닌 경로가 501이던
|
|
39
|
+
것(404). 둘 다 계약 시나리오에 넣어 실제 서버와 대조한다(bootstrap 보고).
|
|
40
|
+
|
|
10
41
|
## [0.1.0-rc.10] — 2026-11-22
|
|
11
42
|
|
|
12
43
|
Pre-release (`npm i @reopt-ai/workspace-sdk@next`). 위임 클라이언트(`createConnectClient`)의 계약을 한 번에 정리했다 — **깨지는 변경이 있다**. 옮기는 표는
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as ClientPrivateJwk, r as ClientKeyRing } from "./keys-B2pA8EkU.js";
|
|
2
|
-
import { t as Page } from "./page-
|
|
2
|
+
import { t as Page } from "./page-79Ab4UGQ.js";
|
|
3
3
|
import { n as PlatformUrls } from "./urls-DiYp_PHg.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region src/workspace/schemas.d.ts
|
|
@@ -686,4 +686,4 @@ type PlatformClient = {
|
|
|
686
686
|
declare function createPlatformClient(config: PlatformClientConfig): PlatformClient;
|
|
687
687
|
//#endregion
|
|
688
688
|
export { PlatformStageColor as $, PlatformEavSchemaApplyResult as A, platformOAuthClientUpsertInputSchema as At, PlatformOAuthClientUpsertInput as B, platformPublishedPostSummarySchema as Bt, PlatformBrandappUpsertInput as C, platformErrorSchema as Ct, PlatformEavDataType as D, platformMeSchema as Dt, PlatformEavBrandappResources as E, platformLockReleasedSchema as Et, PlatformManagedBy as F, platformPipelineUpsertInputSchema as Ft, PlatformPipelineUpsertInput as G, platformTaskStageInputSchema as Gt, PlatformPipelineImportInput as H, platformResourcesSchema as Ht, PlatformMe as I, platformPublishedPostDetailQuerySchema as It, PlatformPublishedPostListOptions as J, platformWebhookResourceSchema as Jt, PlatformPublishedPost as K, platformTaskStageSchema as Kt, PlatformOAuthClientImportInput as L, platformPublishedPostListQuerySchema as Lt, PlatformErrorBody as M, platformPipelineResourceSchema as Mt, PlatformLockAcquired as N, platformPipelineSchema as Nt, PlatformEavEntityResource as O, platformOAuthClientImportInputSchema as Ot, PlatformLockReleased as P, platformPipelineStageInputSchema as Pt, PlatformResourcesV2 as Q, platformWriteMetaSchema as Qt, PlatformOAuthClientPurpose as R, platformPublishedPostPageSchema as Rt, PlatformBrandappResource as S, platformEavSchemaOperationSchema as St, PlatformDomainStatus as T, platformLockAcquiredSchema as Tt, PlatformPipelineResource as U, platformResourcesV2Schema as Ut, PlatformPipeline as V, platformResourceKeySchema as Vt, PlatformPipelineStageInput as W, platformTaskSchema as Wt, PlatformPublishedPostSummary as X, platformWebhookUpsertInputSchema as Xt, PlatformPublishedPostPage as Y, platformWebhookSchema as Yt, PlatformResources as Z, platformWorkTaskStageChangedEventSchema as Zt, PLATFORM_TOKEN_ENDPOINT_AUTH_METHODS as _, platformCustomerUpsertInputSchema as _t, createPlatformClient as a, PlatformTaskUpsertInput as at, PlatformBrandResource as b, platformEavSchemaApplyInputSchema as bt, PLATFORM_DOMAIN_STATUSES as c, PlatformWebhookTrigger as ct, PLATFORM_OAUTH_APPLICATION_TYPES as d, PlatformWriteMeta as dt, PlatformTask as et, PLATFORM_OAUTH_CLIENT_PURPOSES as f, platformBrandImportInputSchema as ft, PLATFORM_TASK_PRIORITIES as g, platformBrandappUpsertInputSchema as gt, PLATFORM_TASK_OUTCOMES as h, platformBrandappResourceSchema as ht, PlatformWriteResult as i, PlatformTaskStageInput as it, PlatformEavSchemaOperation as j, platformPipelineImportInputSchema as jt, PlatformEavSchemaApplyInput as k, platformOAuthClientResourceSchema as kt, PLATFORM_EAV_DATA_TYPES as l, PlatformWebhookUpsertInput as lt, PLATFORM_STAGE_COLORS as m, platformBrandUpsertInputSchema as mt, PlatformClient as n, PlatformTaskPriority as nt, PLATFORM_ADMIN_SCOPE as o, PlatformWebhook as ot, PLATFORM_OAUTH_GRANT_TYPES as p, platformBrandResourceSchema as pt, PlatformPublishedPostGetOptions as q, platformTaskUpsertInputSchema as qt, PlatformClientConfig as r, PlatformTaskStage as rt, PLATFORM_BRANDAPP_STATUSES as s, PlatformWebhookResource as st, DEFAULT_PLATFORM_SCOPES as t, PlatformTaskOutcome as tt, PLATFORM_MANAGED_BY_VALUES as u, PlatformWorkTaskStageChangedEvent as ut, PLATFORM_WEBHOOK_TRIGGERS as v, platformEavBrandappResourcesSchema as vt, PlatformCustomerUpsertInput as w, platformExternalIdSchema as wt, PlatformBrandUpsertInput as x, platformEavSchemaApplyResultSchema as xt, PlatformBrandImportInput as y, platformEavEntityResourceSchema as yt, PlatformOAuthClientResource as z, platformPublishedPostSchema as zt };
|
|
689
|
-
//# sourceMappingURL=client-
|
|
689
|
+
//# sourceMappingURL=client-ByIjKnf3.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as readPlatformFailure } from "./transport-
|
|
1
|
+
import { l as SDK_VERSION, n as PlatformApiError } from "./errors-C5_fhcqb.js";
|
|
2
|
+
import { n as readPlatformFailure } from "./transport-CN64IoHx.js";
|
|
3
3
|
import { resolvePlatformUrls } from "./urls.js";
|
|
4
4
|
import { o as readClientKeyRing } from "./keys-6gwtNd0g.js";
|
|
5
5
|
import { r as createMachineClient } from "./client-XAvKlbbn.js";
|
|
@@ -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-WEomQekp.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as WorkspacePermissionKey, o as ConnectScope } from "./permissions-
|
|
2
|
-
import { n as PageQuery, r as SortOf, t as Page } from "./page-
|
|
1
|
+
import { c as WorkspacePermissionKey, o as ConnectScope } from "./permissions-COCbNJeQ.js";
|
|
2
|
+
import { n as PageQuery, r as SortOf, t as Page } from "./page-79Ab4UGQ.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region src/workspace/transport.d.ts
|
|
5
5
|
/**
|
|
@@ -347,6 +347,117 @@ type ConnectInquiryMoveResult = ConnectInquiryDetail & {
|
|
|
347
347
|
/** 고객 여정 단계도 함께 옮겨졌는가 */
|
|
348
348
|
journeySynced: boolean;
|
|
349
349
|
};
|
|
350
|
+
type ConnectCustomerRecord = "person" | "company";
|
|
351
|
+
type ConnectCustomerSummary = {
|
|
352
|
+
id: string;
|
|
353
|
+
name: string;
|
|
354
|
+
/** 사람인가 회사인가 */
|
|
355
|
+
record: ConnectCustomerRecord;
|
|
356
|
+
email: string | null;
|
|
357
|
+
phoneNumber: string | null;
|
|
358
|
+
tags: string[];
|
|
359
|
+
/** 이 고객이 놓인 여정과 단계(여정 여럿에 동시에 있을 수 있다) */
|
|
360
|
+
journeys: Array<{
|
|
361
|
+
journeyId: string;
|
|
362
|
+
journey: string;
|
|
363
|
+
stageId: string;
|
|
364
|
+
stage: string;
|
|
365
|
+
}>;
|
|
366
|
+
createdAt: string;
|
|
367
|
+
};
|
|
368
|
+
type ConnectCustomer = Omit<ConnectCustomerSummary, "journeys"> & {
|
|
369
|
+
/** 반송·수신거부 상태 — 메일을 보낼 수 있는지 */
|
|
370
|
+
emailStatus: string | null;
|
|
371
|
+
address: string | null;
|
|
372
|
+
journeys: Array<ConnectCustomerSummary["journeys"][number] & {
|
|
373
|
+
outcome: string | null;
|
|
374
|
+
joinedAt: string;
|
|
375
|
+
}>;
|
|
376
|
+
/** 커스텀 필드 값 — `id`는 `customers.listFields()`의 id, 정의가 사라진 값은 `label`이 null */
|
|
377
|
+
fields: Array<{
|
|
378
|
+
id: string;
|
|
379
|
+
label: string | null;
|
|
380
|
+
value?: unknown;
|
|
381
|
+
}>;
|
|
382
|
+
counts: {
|
|
383
|
+
notes: number;
|
|
384
|
+
tasks: number;
|
|
385
|
+
comments: number;
|
|
386
|
+
formSubmissions: number;
|
|
387
|
+
};
|
|
388
|
+
updatedAt: string;
|
|
389
|
+
};
|
|
390
|
+
type ConnectCustomerTag = {
|
|
391
|
+
id: string;
|
|
392
|
+
name: string;
|
|
393
|
+
customerCount: number;
|
|
394
|
+
};
|
|
395
|
+
type ConnectCustomerField = {
|
|
396
|
+
id: string;
|
|
397
|
+
label: string;
|
|
398
|
+
dataType: string;
|
|
399
|
+
/** 선택형 필드의 값 후보 */
|
|
400
|
+
options: string[];
|
|
401
|
+
};
|
|
402
|
+
type ConnectCustomerNote = {
|
|
403
|
+
id: string;
|
|
404
|
+
customerId: string;
|
|
405
|
+
text: string;
|
|
406
|
+
/** 작성자 이름 */
|
|
407
|
+
author: string;
|
|
408
|
+
edited: boolean;
|
|
409
|
+
createdAt: string;
|
|
410
|
+
updatedAt: string;
|
|
411
|
+
};
|
|
412
|
+
/** 타임라인 한 줄 — 기록된 활동(`activity`) 또는 내부 코멘트(`comment`) */
|
|
413
|
+
type ConnectCustomerEvent = {
|
|
414
|
+
kind: "activity" | "comment";
|
|
415
|
+
id: string;
|
|
416
|
+
/** 활동 종류(`customer.created` 등) 또는 `"comment"` */
|
|
417
|
+
type: string;
|
|
418
|
+
createdAt: string;
|
|
419
|
+
text?: string;
|
|
420
|
+
actorType?: string | null;
|
|
421
|
+
metadata?: unknown;
|
|
422
|
+
};
|
|
423
|
+
type ConnectCustomerListQuery = PageQuery & {
|
|
424
|
+
/** 이름·이메일·전화 검색 */
|
|
425
|
+
q?: string;
|
|
426
|
+
/** 이 태그 중 하나라도 붙은 고객(20개까지) */
|
|
427
|
+
tags?: string[];
|
|
428
|
+
record?: ConnectCustomerRecord;
|
|
429
|
+
journeyId?: string;
|
|
430
|
+
stageId?: string;
|
|
431
|
+
/** `connect.brands()`의 id — 그 브랜드에 귀속된 고객 */
|
|
432
|
+
brandId?: string;
|
|
433
|
+
/** ISO 시각 */
|
|
434
|
+
createdAfter?: string;
|
|
435
|
+
createdBefore?: string;
|
|
436
|
+
};
|
|
437
|
+
type ConnectCustomerContactInput = {
|
|
438
|
+
record?: ConnectCustomerRecord;
|
|
439
|
+
/** null·빈 문자열은 지운다(수정) */
|
|
440
|
+
email?: string | null;
|
|
441
|
+
phoneNumber?: string | null;
|
|
442
|
+
address?: string | null;
|
|
443
|
+
/** 커스텀 필드 — `customers.listFields()`의 **라벨이 아니라 이름** → 값. 선언되지 않은 이름은 400(`fields`) */
|
|
444
|
+
attributes?: Record<string, unknown>;
|
|
445
|
+
};
|
|
446
|
+
type ConnectCustomerCreateInput = ConnectCustomerContactInput & {
|
|
447
|
+
name: string;
|
|
448
|
+
tags?: string[];
|
|
449
|
+
/** 첫 메모 */
|
|
450
|
+
note?: string;
|
|
451
|
+
brandId?: string;
|
|
452
|
+
/**
|
|
453
|
+
* 이메일·전화가 기존 고객과 겹칠 때 — 기본은 거절(409 `CONTACT_TAKEN`, `fields`가 어느 칸인지 말한다).
|
|
454
|
+
* `"link"`는 그 고객에 덧붙이고 그 고객을 돌려준다.
|
|
455
|
+
*/
|
|
456
|
+
onConflict?: "fail" | "link";
|
|
457
|
+
};
|
|
458
|
+
type ConnectCustomerUpdateInput = ConnectCustomerContactInput & {
|
|
459
|
+
name?: string;
|
|
460
|
+
};
|
|
350
461
|
/** 워크스페이스 앱이 소유한 테이블(RFC-0043 5단계) — 선언은 앱의 기계 자격이 `platform.eav.applySchema`로 한다 */
|
|
351
462
|
type ConnectEavEntity = {
|
|
352
463
|
id: string;
|
|
@@ -498,6 +609,9 @@ declare const connectFormSchema: z.ZodType<ConnectForm>;
|
|
|
498
609
|
declare const connectInquirySchema: z.ZodType<ConnectInquiry>;
|
|
499
610
|
declare const connectInquiryDetailSchema: z.ZodType<ConnectInquiryDetail>;
|
|
500
611
|
declare const connectInquiryMoveResultSchema: z.ZodType<ConnectInquiryMoveResult>;
|
|
612
|
+
declare const connectCustomerSummarySchema: z.ZodType<ConnectCustomerSummary>;
|
|
613
|
+
declare const connectCustomerSchema: z.ZodType<ConnectCustomer>;
|
|
614
|
+
declare const connectCustomerNoteSchema: z.ZodType<ConnectCustomerNote>;
|
|
501
615
|
declare const connectEavEntitySchema: z.ZodType<ConnectEavEntity>;
|
|
502
616
|
declare const connectEavRecordSchema: z.ZodType<ConnectEavRecord>;
|
|
503
617
|
type Options = ConnectRequestOptions;
|
|
@@ -628,6 +742,42 @@ type ConnectClient = {
|
|
|
628
742
|
get: (submissionId: string, options?: Options) => Promise<ConnectInquiryDetail>;
|
|
629
743
|
moveStage: (submissionId: string, stageId: string, options?: Options) => Promise<ConnectInquiryMoveResult>;
|
|
630
744
|
};
|
|
745
|
+
/**
|
|
746
|
+
* 고객(CRM 명부). 연락처가 있어 읽기는 `customer:read` scope, 쓰기는 `workspace:write`에 **더해** `customer:read`가
|
|
747
|
+
* 필요하다(쓰기 응답에 고객 전체가 실린다). 리옵트는 명부를 읽은 호출을 감사에 남긴다(누가·어느 앱으로·몇 건).
|
|
748
|
+
*/
|
|
749
|
+
customers: {
|
|
750
|
+
/** 최근 등록순. `limit`을 안 주면 한 장에 50명(최대 100). `total`은 조건에 맞는 전체 수 */
|
|
751
|
+
list: (query?: ConnectCustomerListQuery, options?: Options) => Promise<Page<ConnectCustomerSummary>>;
|
|
752
|
+
/** 태그 어휘 — `list({ tags })` 필터와 태그 입력 자동완성에 쓴다 */
|
|
753
|
+
listTags: (options?: Options) => Promise<Page<ConnectCustomerTag>>;
|
|
754
|
+
/** 커스텀 필드 정의 — `ConnectCustomer.fields[].id`의 뜻 */
|
|
755
|
+
listFields: (options?: Options) => Promise<Page<ConnectCustomerField>>;
|
|
756
|
+
get: (id: string, options?: Options) => Promise<ConnectCustomer>;
|
|
757
|
+
/**
|
|
758
|
+
* 등록. 연락처(이메일·전화)가 다른 고객과 겹치면 409 `CONTACT_TAKEN` — `error.fields`가 어느 칸인지 말한다.
|
|
759
|
+
* `onConflict: "link"`면 그 고객에 덧붙이고 그 고객을 돌려준다.
|
|
760
|
+
*/
|
|
761
|
+
create: (input: ConnectCustomerCreateInput, options?: Options) => Promise<ConnectCustomer>;
|
|
762
|
+
/** 부분 수정 — 준 필드만 바뀐다. 연락처 충돌은 409 `CONTACT_TAKEN` */
|
|
763
|
+
update: (id: string, input: ConnectCustomerUpdateInput, options?: Options) => Promise<ConnectCustomer>;
|
|
764
|
+
/** 태그 붙이기·떼기 — 없는 이름은 만든다. 고친 고객을 돌려준다 */
|
|
765
|
+
updateTags: (id: string, change: {
|
|
766
|
+
add?: string[];
|
|
767
|
+
remove?: string[];
|
|
768
|
+
}, options?: Options) => Promise<ConnectCustomer>;
|
|
769
|
+
/** 메모 — 오래된 것부터 */
|
|
770
|
+
listNotes: (id: string, options?: Options) => Promise<Page<ConnectCustomerNote>>;
|
|
771
|
+
addNote: (id: string, text: string, options?: Options) => Promise<ConnectCustomerNote>;
|
|
772
|
+
updateNote: (noteId: string, text: string, options?: Options) => Promise<ConnectCustomerNote>;
|
|
773
|
+
deleteNote: (noteId: string, options?: Options) => Promise<{
|
|
774
|
+
id: string;
|
|
775
|
+
}>;
|
|
776
|
+
/** 활동 + 내부 코멘트, 최근 것부터(기본 50, 최대 100) */
|
|
777
|
+
timeline: (id: string, query?: {
|
|
778
|
+
limit?: number;
|
|
779
|
+
}, options?: Options) => Promise<Page<ConnectCustomerEvent>>;
|
|
780
|
+
};
|
|
631
781
|
/**
|
|
632
782
|
* 워크스페이스 앱이 소유한 테이블(RFC-0043 5단계). 이 연결 클라이언트의 설치가 소유한 테이블만 보인다 — 다른 앱·브랜드앱의
|
|
633
783
|
* 테이블 경로는 404. 쓰기 거절: 값 검증 400(`fields`는 속성 이름), 고유값 409 `CONFLICT`, `ifVersion` 불일치 409
|
|
@@ -649,5 +799,5 @@ type ConnectClient = {
|
|
|
649
799
|
};
|
|
650
800
|
declare function createConnectClient(config: ConnectClientConfig): ConnectClient;
|
|
651
801
|
//#endregion
|
|
652
|
-
export {
|
|
653
|
-
//# sourceMappingURL=connect-
|
|
802
|
+
export { ConnectTask as $, ConnectInquiryMoveResult as A, ConnectPostListQuery as B, ConnectFolder as C, connectPostGroupSchema as Ct, ConnectFormType as D, connectTaskSchema as Dt, ConnectFormStatus as E, connectPostTagSchema as Et, ConnectPost as F, ConnectPostSummary as G, ConnectPostSortField as H, ConnectPostAuthor as I, ConnectRequestOptions as J, ConnectPostTag as K, ConnectPostCreateInput as L, ConnectMember as M, ConnectMemberRole as N, ConnectInquiry as O, createConnectClient as Ot, ConnectPipeline as P, ConnectStageOutcome as Q, ConnectPostGroup as R, ConnectFileVisibility as S, connectPipelineSchema as St, ConnectForm as T, connectPostSummarySchema as Tt, ConnectPostSpec as U, ConnectPostMetaInput as V, ConnectPostStatus as W, ConnectSignedUrlOptions as X, ConnectSignedUrl as Y, ConnectStageColor as Z, ConnectEavRecord as _, connectInquiryDetailSchema as _t, ConnectClientConfig as a, ConnectTaskUpdateInput as at, ConnectFileSortField as b, connectMeSchema as bt, ConnectCustomerEvent as c, connectCustomerNoteSchema as ct, ConnectCustomerNote as d, connectEavEntitySchema as dt, ConnectTaskCreateInput as et, ConnectCustomerRecord as f, connectEavRecordSchema as ft, ConnectEavEntity as g, connectFormSchema as gt, ConnectCustomerUpdateInput as h, connectFolderSchema as ht, ConnectClient as i, ConnectTaskSortField as it, ConnectMe as j, ConnectInquiryDetail as k, ConnectCustomerField as l, connectCustomerSchema as lt, ConnectCustomerTag as m, connectFileUsageSchema as mt, ConnectAnswerValue as n, ConnectTaskMoveInput as nt, ConnectCustomer as o, ConnectWorkspaceTier as ot, ConnectCustomerSummary as p, connectFileSchema as pt, ConnectPostUpdateInput as q, ConnectBrand as r, ConnectTaskPriority as rt, ConnectCustomerCreateInput as s, connectBrandSchema as st, ConnectAccessToken as t, ConnectTaskListQuery as tt, ConnectCustomerListQuery as u, connectCustomerSummarySchema as ut, ConnectFile as v, connectInquiryMoveResultSchema as vt, ConnectFolderKind as w, connectPostSchema as wt, ConnectFileUsage as x, connectMemberSchema as xt, ConnectFileListQuery as y, connectInquirySchema as yt, ConnectPostGroupKind as z };
|
|
803
|
+
//# sourceMappingURL=connect-BBf9QfQB.d.ts.map
|
package/dist/connect.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
2
|
-
import { a as listAll, i as iterate, n as PageQuery, r as SortOf, t as Page } from "./page-
|
|
3
|
-
import { a as PlatformSdkErrorCode, c as
|
|
4
|
-
import { $ as
|
|
5
|
-
export { CONNECT_OPERATIONS, CONNECT_OPERATION_NAMES, CONNECT_SCOPES, type ConnectAccessToken, type ConnectAnswerValue, type ConnectBrand, type ConnectClient, type ConnectClientConfig, 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 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 ConnectTaskCreateInput, type ConnectTaskListQuery, type ConnectTaskMoveInput, type ConnectTaskPriority, type ConnectTaskSortField, type ConnectTaskUpdateInput, type ConnectWorkspaceTier, 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, connectEavEntitySchema, connectEavRecordSchema, connectFileSchema, connectFileUsageSchema, connectFolderSchema, connectFormSchema, connectInquiryDetailSchema, type connectInquiryMoveResultSchema, connectInquirySchema, connectMeSchema, connectMemberSchema, connectPipelineSchema, connectPostGroupSchema, connectPostSchema, connectPostSummarySchema, connectPostTagSchema, connectTaskSchema, createConnectClient, isPermissionDenied, isPlatformApiError, isPlatformError, isSignInRequired, iterate, listAll };
|
|
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-COCbNJeQ.js";
|
|
2
|
+
import { a as listAll, i as iterate, n as PageQuery, r as SortOf, t as Page } from "./page-79Ab4UGQ.js";
|
|
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-DLJlABJL.js";
|
|
4
|
+
import { $ as ConnectTask, A as ConnectInquiryMoveResult, B as ConnectPostListQuery, C as ConnectFolder, Ct as connectPostGroupSchema, D as ConnectFormType, Dt as connectTaskSchema, E as ConnectFormStatus, Et as connectPostTagSchema, F as ConnectPost, G as ConnectPostSummary, H as ConnectPostSortField, I as ConnectPostAuthor, J as ConnectRequestOptions, K as ConnectPostTag, L as ConnectPostCreateInput, M as ConnectMember, N as ConnectMemberRole, O as ConnectInquiry, Ot as createConnectClient, P as ConnectPipeline, Q as ConnectStageOutcome, R as ConnectPostGroup, S as ConnectFileVisibility, St as connectPipelineSchema, T as ConnectForm, Tt as connectPostSummarySchema, U as ConnectPostSpec, V as ConnectPostMetaInput, W as ConnectPostStatus, X as ConnectSignedUrlOptions, Y as ConnectSignedUrl, Z as ConnectStageColor, _ as ConnectEavRecord, _t as connectInquiryDetailSchema, a as ConnectClientConfig, at as ConnectTaskUpdateInput, b as ConnectFileSortField, bt as connectMeSchema, c as ConnectCustomerEvent, ct as connectCustomerNoteSchema, d as ConnectCustomerNote, dt as connectEavEntitySchema, et as ConnectTaskCreateInput, f as ConnectCustomerRecord, ft as connectEavRecordSchema, g as ConnectEavEntity, gt as connectFormSchema, h as ConnectCustomerUpdateInput, ht as connectFolderSchema, i as ConnectClient, it as ConnectTaskSortField, j as ConnectMe, k as ConnectInquiryDetail, l as ConnectCustomerField, lt as connectCustomerSchema, m as ConnectCustomerTag, mt as connectFileUsageSchema, n as ConnectAnswerValue, nt as ConnectTaskMoveInput, o as ConnectCustomer, ot as ConnectWorkspaceTier, p as ConnectCustomerSummary, pt as connectFileSchema, q as ConnectPostUpdateInput, r as ConnectBrand, rt as ConnectTaskPriority, s as ConnectCustomerCreateInput, st as connectBrandSchema, t as ConnectAccessToken, tt as ConnectTaskListQuery, u as ConnectCustomerListQuery, ut as connectCustomerSummarySchema, v as ConnectFile, vt as connectInquiryMoveResultSchema, w as ConnectFolderKind, wt as connectPostSchema, x as ConnectFileUsage, xt as connectMemberSchema, y as ConnectFileListQuery, yt as connectInquirySchema, z as ConnectPostGroupKind } from "./connect-BBf9QfQB.js";
|
|
5
|
+
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 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 ConnectTaskCreateInput, type ConnectTaskListQuery, type ConnectTaskMoveInput, type ConnectTaskPriority, type ConnectTaskSortField, type ConnectTaskUpdateInput, type ConnectWorkspaceTier, 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, connectPipelineSchema, connectPostGroupSchema, connectPostSchema, connectPostSummarySchema, connectPostTagSchema, connectTaskSchema, createConnectClient, isNotImplemented, isPermissionDenied, isPlatformApiError, isPlatformError, isSignInRequired, iterate, listAll };
|
package/dist/connect.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as
|
|
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-C5_fhcqb.js";
|
|
2
2
|
import { CONNECT_OPERATIONS, CONNECT_OPERATION_NAMES, CONNECT_SCOPES, WORKSPACE_PERMISSION_KEYS, can, canAll, canAny, canCall } from "./permissions.js";
|
|
3
|
-
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-
|
|
3
|
+
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-SjWh1rqY.js";
|
|
4
4
|
|
|
5
|
-
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, isPermissionDenied, isPlatformApiError, isPlatformError, isSignInRequired, iterate, listAll };
|
|
5
|
+
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 };
|
|
@@ -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.11";
|
|
4
4
|
|
|
5
5
|
//#endregion
|
|
6
6
|
//#region src/workspace/errors.ts
|
|
@@ -53,7 +53,9 @@ const PLATFORM_ERROR_CODES = [
|
|
|
53
53
|
"PAYLOAD_TOO_LARGE",
|
|
54
54
|
"UNSUPPORTED_MEDIA_TYPE",
|
|
55
55
|
"QUOTA_EXCEEDED",
|
|
56
|
-
"LINK_EXPIRED"
|
|
56
|
+
"LINK_EXPIRED",
|
|
57
|
+
"CONTACT_TAKEN",
|
|
58
|
+
"NOT_IMPLEMENTED"
|
|
57
59
|
];
|
|
58
60
|
/** SDK가 응답 없이(또는 읽을 수 없는 응답으로) 스스로 만드는 코드. */
|
|
59
61
|
const SDK_ERROR_CODES = [
|
|
@@ -101,6 +103,13 @@ function isPlatformError(error, ...codes) {
|
|
|
101
103
|
return isPlatformApiError(error) && (codes.length === 0 || codes.includes(error.code));
|
|
102
104
|
}
|
|
103
105
|
/** 다시 로그인해야 풀리는가 — 토큰 만료·폐기(401). 직원 앱은 로그인 화면으로 보낸다. */
|
|
106
|
+
/**
|
|
107
|
+
* 이 서버에는 그 기능이 아직 없다 — 서버가 SDK보다 오래됐다(새 SDK를 먼저 올렸거나, 자체 호스팅 서버가 뒤처졌다).
|
|
108
|
+
* 화면에서 그 기능을 "아직 쓸 수 없음"으로 보이게 할 때 쓴다. 로그인 문제(`isSignInRequired`)가 아니다.
|
|
109
|
+
*/
|
|
110
|
+
function isNotImplemented(error) {
|
|
111
|
+
return isPlatformError(error, "NOT_IMPLEMENTED");
|
|
112
|
+
}
|
|
104
113
|
function isSignInRequired(error) {
|
|
105
114
|
return isPlatformApiError(error) && error.status === 401;
|
|
106
115
|
}
|
|
@@ -110,5 +119,5 @@ function isPermissionDenied(error) {
|
|
|
110
119
|
}
|
|
111
120
|
|
|
112
121
|
//#endregion
|
|
113
|
-
export {
|
|
114
|
-
//# sourceMappingURL=errors-
|
|
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-C5_fhcqb.js.map
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* 서버가 내는 코드 전부(`apps/web/server/hono/lib/platform-response.ts`와 양방향 대조 — 한쪽만 늘면 테스트가 깨진다) +
|
|
20
20
|
* SDK가 스스로 만드는 셋(`HTTP_ERROR`·`INVALID_RESPONSE`·`TIMEOUT`·`NETWORK_ERROR`).
|
|
21
21
|
*/
|
|
22
|
-
declare const PLATFORM_ERROR_CODES: readonly ["VALIDATION_ERROR", "UNAUTHORIZED", "INSUFFICIENT_SCOPE", "FORBIDDEN", "WORKSPACE_MISMATCH", "TIER_REQUIRED", "NOT_FOUND", "STAGE_NOT_AVAILABLE", "DESTRUCTIVE_BLOCKED", "CONFLICT", "LOCK_HELD", "LOCK_UNAVAILABLE", "RATE_LIMITED", "INTERNAL_ERROR", "INVALID_MANIFEST", "SIGNATURE_INVALID", "JWKS_UNREACHABLE", "MANIFEST_EXPIRED", "SCOPE_NOT_ALLOWED", "SLUG_TAKEN", "INVALID_TRANSITION", "REAUTH_REQUIRED", "MANIFEST_UNSUPPORTED", "JWKS_REJECTED", "VERSION_CONFLICT", "PAYLOAD_TOO_LARGE", "UNSUPPORTED_MEDIA_TYPE", "QUOTA_EXCEEDED", "LINK_EXPIRED"];
|
|
22
|
+
declare const PLATFORM_ERROR_CODES: readonly ["VALIDATION_ERROR", "UNAUTHORIZED", "INSUFFICIENT_SCOPE", "FORBIDDEN", "WORKSPACE_MISMATCH", "TIER_REQUIRED", "NOT_FOUND", "STAGE_NOT_AVAILABLE", "DESTRUCTIVE_BLOCKED", "CONFLICT", "LOCK_HELD", "LOCK_UNAVAILABLE", "RATE_LIMITED", "INTERNAL_ERROR", "INVALID_MANIFEST", "SIGNATURE_INVALID", "JWKS_UNREACHABLE", "MANIFEST_EXPIRED", "SCOPE_NOT_ALLOWED", "SLUG_TAKEN", "INVALID_TRANSITION", "REAUTH_REQUIRED", "MANIFEST_UNSUPPORTED", "JWKS_REJECTED", "VERSION_CONFLICT", "PAYLOAD_TOO_LARGE", "UNSUPPORTED_MEDIA_TYPE", "QUOTA_EXCEEDED", "LINK_EXPIRED", "CONTACT_TAKEN", "NOT_IMPLEMENTED"];
|
|
23
23
|
/** SDK가 응답 없이(또는 읽을 수 없는 응답으로) 스스로 만드는 코드. */
|
|
24
24
|
declare const SDK_ERROR_CODES: readonly ["HTTP_ERROR", "INVALID_RESPONSE", "TIMEOUT", "NETWORK_ERROR"];
|
|
25
25
|
type PlatformServerErrorCode = (typeof PLATFORM_ERROR_CODES)[number];
|
|
@@ -63,9 +63,14 @@ declare function isPlatformApiError(error: unknown): error is PlatformApiError;
|
|
|
63
63
|
/** 코드로 가른다 — 여러 개를 주면 그중 하나. */
|
|
64
64
|
declare function isPlatformError(error: unknown, ...codes: PlatformErrorCode[]): error is PlatformApiError;
|
|
65
65
|
/** 다시 로그인해야 풀리는가 — 토큰 만료·폐기(401). 직원 앱은 로그인 화면으로 보낸다. */
|
|
66
|
+
/**
|
|
67
|
+
* 이 서버에는 그 기능이 아직 없다 — 서버가 SDK보다 오래됐다(새 SDK를 먼저 올렸거나, 자체 호스팅 서버가 뒤처졌다).
|
|
68
|
+
* 화면에서 그 기능을 "아직 쓸 수 없음"으로 보이게 할 때 쓴다. 로그인 문제(`isSignInRequired`)가 아니다.
|
|
69
|
+
*/
|
|
70
|
+
declare function isNotImplemented(error: unknown): boolean;
|
|
66
71
|
declare function isSignInRequired(error: unknown): boolean;
|
|
67
72
|
/** 이 멤버에게 없는 권한·scope·플랜 때문인가 — 버튼을 숨기거나 안내한다(다시 로그인해도 안 풀린다). */
|
|
68
73
|
declare function isPermissionDenied(error: unknown): boolean;
|
|
69
74
|
//#endregion
|
|
70
|
-
export { PlatformSdkErrorCode as a,
|
|
71
|
-
//# sourceMappingURL=errors-
|
|
75
|
+
export { PlatformSdkErrorCode as a, isNotImplemented as c, isPlatformError as d, isSignInRequired as f, PlatformFieldError as i, isPermissionDenied as l, PlatformApiError as n, PlatformServerErrorCode as o, PlatformErrorCode as r, SDK_ERROR_CODES as s, PLATFORM_ERROR_CODES as t, isPlatformApiError as u };
|
|
76
|
+
//# sourceMappingURL=errors-DLJlABJL.d.ts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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-
|
|
2
|
-
import { a as listAll, i as iterate, n as PageQuery, r as SortOf, t as Page } from "./page-
|
|
3
|
-
import { a as PlatformSdkErrorCode, c as
|
|
4
|
-
import { $ as
|
|
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-COCbNJeQ.js";
|
|
2
|
+
import { a as listAll, i as iterate, n as PageQuery, r as SortOf, t as Page } from "./page-79Ab4UGQ.js";
|
|
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-DLJlABJL.js";
|
|
4
|
+
import { $ as ConnectTask, B as ConnectPostListQuery, C as ConnectFolder, Ct as connectPostGroupSchema, D as ConnectFormType, Dt as connectTaskSchema, E as ConnectFormStatus, Et as connectPostTagSchema, F as ConnectPost, G as ConnectPostSummary, H as ConnectPostSortField, I as ConnectPostAuthor, J as ConnectRequestOptions, K as ConnectPostTag, L as ConnectPostCreateInput, M as ConnectMember, N as ConnectMemberRole, O as ConnectInquiry, Ot as createConnectClient, P as ConnectPipeline, Q as ConnectStageOutcome, R as ConnectPostGroup, S as ConnectFileVisibility, St as connectPipelineSchema, T as ConnectForm, Tt as connectPostSummarySchema, U as ConnectPostSpec, V as ConnectPostMetaInput, W as ConnectPostStatus, X as ConnectSignedUrlOptions, Y as ConnectSignedUrl, Z as ConnectStageColor, _ as ConnectEavRecord, _t as connectInquiryDetailSchema, a as ConnectClientConfig, at as ConnectTaskUpdateInput, b as ConnectFileSortField, bt as connectMeSchema, dt as connectEavEntitySchema, et as ConnectTaskCreateInput, ft as connectEavRecordSchema, g as ConnectEavEntity, gt as connectFormSchema, ht as connectFolderSchema, i as ConnectClient, it as ConnectTaskSortField, j as ConnectMe, k as ConnectInquiryDetail, mt as connectFileUsageSchema, n as ConnectAnswerValue, nt as ConnectTaskMoveInput, ot as ConnectWorkspaceTier, pt as connectFileSchema, q as ConnectPostUpdateInput, r as ConnectBrand, rt as ConnectTaskPriority, st as connectBrandSchema, t as ConnectAccessToken, tt as ConnectTaskListQuery, v as ConnectFile, w as ConnectFolderKind, wt as connectPostSchema, x as ConnectFileUsage, xt as connectMemberSchema, y as ConnectFileListQuery, yt as connectInquirySchema, z as ConnectPostGroupKind } from "./connect-BBf9QfQB.js";
|
|
5
5
|
import { a as REOPT_PLATFORM_URLS, c as resolvePlatformUrls, i as REOPT_PLATFORM_ID_URLS, n as PlatformUrls } from "./urls-DiYp_PHg.js";
|
|
6
|
-
import { $ as PlatformStageColor, A as PlatformEavSchemaApplyResult, At as platformOAuthClientUpsertInputSchema, B as PlatformOAuthClientUpsertInput, Bt as platformPublishedPostSummarySchema, C as PlatformBrandappUpsertInput, Ct as platformErrorSchema, D as PlatformEavDataType, Dt as platformMeSchema, E as PlatformEavBrandappResources, Et as platformLockReleasedSchema, F as PlatformManagedBy, Ft as platformPipelineUpsertInputSchema, G as PlatformPipelineUpsertInput, Gt as platformTaskStageInputSchema, H as PlatformPipelineImportInput, Ht as platformResourcesSchema, I as PlatformMe, It as platformPublishedPostDetailQuerySchema, J as PlatformPublishedPostListOptions, Jt as platformWebhookResourceSchema, K as PlatformPublishedPost, Kt as platformTaskStageSchema, L as PlatformOAuthClientImportInput, Lt as platformPublishedPostListQuerySchema, M as PlatformErrorBody, Mt as platformPipelineResourceSchema, N as PlatformLockAcquired, Nt as platformPipelineSchema, O as PlatformEavEntityResource, Ot as platformOAuthClientImportInputSchema, P as PlatformLockReleased, Pt as platformPipelineStageInputSchema, Q as PlatformResourcesV2, Qt as platformWriteMetaSchema, R as PlatformOAuthClientPurpose, Rt as platformPublishedPostPageSchema, S as PlatformBrandappResource, St as platformEavSchemaOperationSchema, T as PlatformDomainStatus, Tt as platformLockAcquiredSchema, U as PlatformPipelineResource, Ut as platformResourcesV2Schema, V as PlatformPipeline, Vt as platformResourceKeySchema, W as PlatformPipelineStageInput, Wt as platformTaskSchema, X as PlatformPublishedPostSummary, Xt as platformWebhookUpsertInputSchema, Y as PlatformPublishedPostPage, Yt as platformWebhookSchema, Z as PlatformResources, Zt as platformWorkTaskStageChangedEventSchema, _ as PLATFORM_TOKEN_ENDPOINT_AUTH_METHODS, _t as platformCustomerUpsertInputSchema, a as createPlatformClient, at as PlatformTaskUpsertInput, b as PlatformBrandResource, bt as platformEavSchemaApplyInputSchema, c as PLATFORM_DOMAIN_STATUSES, ct as PlatformWebhookTrigger, d as PLATFORM_OAUTH_APPLICATION_TYPES, dt as PlatformWriteMeta, et as PlatformTask, f as PLATFORM_OAUTH_CLIENT_PURPOSES, ft as platformBrandImportInputSchema, g as PLATFORM_TASK_PRIORITIES, gt as platformBrandappUpsertInputSchema, h as PLATFORM_TASK_OUTCOMES, ht as platformBrandappResourceSchema, i as PlatformWriteResult, it as PlatformTaskStageInput, j as PlatformEavSchemaOperation, jt as platformPipelineImportInputSchema, k as PlatformEavSchemaApplyInput, kt as platformOAuthClientResourceSchema, l as PLATFORM_EAV_DATA_TYPES, lt as PlatformWebhookUpsertInput, m as PLATFORM_STAGE_COLORS, mt as platformBrandUpsertInputSchema, n as PlatformClient, nt as PlatformTaskPriority, o as PLATFORM_ADMIN_SCOPE, ot as PlatformWebhook, p as PLATFORM_OAUTH_GRANT_TYPES, pt as platformBrandResourceSchema, q as PlatformPublishedPostGetOptions, qt as platformTaskUpsertInputSchema, r as PlatformClientConfig, rt as PlatformTaskStage, s as PLATFORM_BRANDAPP_STATUSES, st as PlatformWebhookResource, t as DEFAULT_PLATFORM_SCOPES, tt as PlatformTaskOutcome, u as PLATFORM_MANAGED_BY_VALUES, ut as PlatformWorkTaskStageChangedEvent, v as PLATFORM_WEBHOOK_TRIGGERS, vt as platformEavBrandappResourcesSchema, w as PlatformCustomerUpsertInput, wt as platformExternalIdSchema, x as PlatformBrandUpsertInput, xt as platformEavSchemaApplyResultSchema, y as PlatformBrandImportInput, yt as platformEavEntityResourceSchema, z as PlatformOAuthClientResource, zt as platformPublishedPostSchema } from "./client-
|
|
7
|
-
export { CONNECT_OPERATIONS, CONNECT_OPERATION_NAMES, CONNECT_SCOPES, type ConnectAccessToken, type ConnectAnswerValue, type ConnectBrand, type ConnectClient, type ConnectClientConfig, 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 ConnectMe, type ConnectMember, type ConnectMemberRole, 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 ConnectTaskCreateInput, type ConnectTaskListQuery, type ConnectTaskMoveInput, type ConnectTaskPriority, type ConnectTaskSortField, type ConnectTaskUpdateInput, type ConnectWorkspaceTier, 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, 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, connectEavEntitySchema, connectEavRecordSchema, connectFileSchema, connectFileUsageSchema, connectFolderSchema, connectFormSchema, connectInquiryDetailSchema, connectInquirySchema, connectMeSchema, connectMemberSchema, connectPipelineSchema, connectPostGroupSchema, connectPostSchema, connectPostSummarySchema, connectPostTagSchema, connectTaskSchema, createConnectClient, createPlatformClient, isPermissionDenied, isPlatformApiError, isPlatformError, isSignInRequired, iterate, listAll, 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 };
|
|
6
|
+
import { $ as PlatformStageColor, A as PlatformEavSchemaApplyResult, At as platformOAuthClientUpsertInputSchema, B as PlatformOAuthClientUpsertInput, Bt as platformPublishedPostSummarySchema, C as PlatformBrandappUpsertInput, Ct as platformErrorSchema, D as PlatformEavDataType, Dt as platformMeSchema, E as PlatformEavBrandappResources, Et as platformLockReleasedSchema, F as PlatformManagedBy, Ft as platformPipelineUpsertInputSchema, G as PlatformPipelineUpsertInput, Gt as platformTaskStageInputSchema, H as PlatformPipelineImportInput, Ht as platformResourcesSchema, I as PlatformMe, It as platformPublishedPostDetailQuerySchema, J as PlatformPublishedPostListOptions, Jt as platformWebhookResourceSchema, K as PlatformPublishedPost, Kt as platformTaskStageSchema, L as PlatformOAuthClientImportInput, Lt as platformPublishedPostListQuerySchema, M as PlatformErrorBody, Mt as platformPipelineResourceSchema, N as PlatformLockAcquired, Nt as platformPipelineSchema, O as PlatformEavEntityResource, Ot as platformOAuthClientImportInputSchema, P as PlatformLockReleased, Pt as platformPipelineStageInputSchema, Q as PlatformResourcesV2, Qt as platformWriteMetaSchema, R as PlatformOAuthClientPurpose, Rt as platformPublishedPostPageSchema, S as PlatformBrandappResource, St as platformEavSchemaOperationSchema, T as PlatformDomainStatus, Tt as platformLockAcquiredSchema, U as PlatformPipelineResource, Ut as platformResourcesV2Schema, V as PlatformPipeline, Vt as platformResourceKeySchema, W as PlatformPipelineStageInput, Wt as platformTaskSchema, X as PlatformPublishedPostSummary, Xt as platformWebhookUpsertInputSchema, Y as PlatformPublishedPostPage, Yt as platformWebhookSchema, Z as PlatformResources, Zt as platformWorkTaskStageChangedEventSchema, _ as PLATFORM_TOKEN_ENDPOINT_AUTH_METHODS, _t as platformCustomerUpsertInputSchema, a as createPlatformClient, at as PlatformTaskUpsertInput, b as PlatformBrandResource, bt as platformEavSchemaApplyInputSchema, c as PLATFORM_DOMAIN_STATUSES, ct as PlatformWebhookTrigger, d as PLATFORM_OAUTH_APPLICATION_TYPES, dt as PlatformWriteMeta, et as PlatformTask, f as PLATFORM_OAUTH_CLIENT_PURPOSES, ft as platformBrandImportInputSchema, g as PLATFORM_TASK_PRIORITIES, gt as platformBrandappUpsertInputSchema, h as PLATFORM_TASK_OUTCOMES, ht as platformBrandappResourceSchema, i as PlatformWriteResult, it as PlatformTaskStageInput, j as PlatformEavSchemaOperation, jt as platformPipelineImportInputSchema, k as PlatformEavSchemaApplyInput, kt as platformOAuthClientResourceSchema, l as PLATFORM_EAV_DATA_TYPES, lt as PlatformWebhookUpsertInput, m as PLATFORM_STAGE_COLORS, mt as platformBrandUpsertInputSchema, n as PlatformClient, nt as PlatformTaskPriority, o as PLATFORM_ADMIN_SCOPE, ot as PlatformWebhook, p as PLATFORM_OAUTH_GRANT_TYPES, pt as platformBrandResourceSchema, q as PlatformPublishedPostGetOptions, qt as platformTaskUpsertInputSchema, r as PlatformClientConfig, rt as PlatformTaskStage, s as PLATFORM_BRANDAPP_STATUSES, st as PlatformWebhookResource, t as DEFAULT_PLATFORM_SCOPES, tt as PlatformTaskOutcome, u as PLATFORM_MANAGED_BY_VALUES, ut as PlatformWorkTaskStageChangedEvent, v as PLATFORM_WEBHOOK_TRIGGERS, vt as platformEavBrandappResourcesSchema, w as PlatformCustomerUpsertInput, wt as platformExternalIdSchema, x as PlatformBrandUpsertInput, xt as platformEavSchemaApplyResultSchema, y as PlatformBrandImportInput, yt as platformEavEntityResourceSchema, z as PlatformOAuthClientResource, zt as platformPublishedPostSchema } from "./client-ByIjKnf3.js";
|
|
7
|
+
export { CONNECT_OPERATIONS, CONNECT_OPERATION_NAMES, CONNECT_SCOPES, type ConnectAccessToken, type ConnectAnswerValue, type ConnectBrand, type ConnectClient, type ConnectClientConfig, 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 ConnectMe, type ConnectMember, type ConnectMemberRole, 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 ConnectTaskCreateInput, type ConnectTaskListQuery, type ConnectTaskMoveInput, type ConnectTaskPriority, type ConnectTaskSortField, type ConnectTaskUpdateInput, type ConnectWorkspaceTier, 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, 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, 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, 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 };
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as
|
|
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-C5_fhcqb.js";
|
|
2
2
|
import { REOPT_PLATFORM_ID_URLS, REOPT_PLATFORM_URLS, resolvePlatformUrls } from "./urls.js";
|
|
3
3
|
import { $ as platformWorkTaskStageChangedEventSchema, A as platformOAuthClientImportInputSchema, B as platformPublishedPostPageSchema, C as platformEavSchemaApplyResultSchema, D as platformLockAcquiredSchema, E as platformExternalIdSchema, F as platformPipelineSchema, G as platformResourcesV2Schema, H as platformPublishedPostSummarySchema, I as platformPipelineStageInputSchema, J as platformTaskStageSchema, K as platformTaskSchema, L as platformPipelineUpsertInputSchema, M as platformOAuthClientUpsertInputSchema, N as platformPipelineImportInputSchema, O as platformLockReleasedSchema, P as platformPipelineResourceSchema, Q as platformWebhookUpsertInputSchema, R as platformPublishedPostDetailQuerySchema, S as platformEavSchemaApplyInputSchema, T as platformErrorSchema, U as platformResourceKeySchema, V as platformPublishedPostSchema, W as platformResourcesSchema, X as platformWebhookResourceSchema, Y as platformTaskUpsertInputSchema, Z as platformWebhookSchema, _ as platformBrandappResourceSchema, a as PLATFORM_MANAGED_BY_VALUES, b as platformEavBrandappResourcesSchema, c as PLATFORM_OAUTH_GRANT_TYPES, d as PLATFORM_TASK_PRIORITIES, et as platformWriteMetaSchema, f as PLATFORM_TOKEN_ENDPOINT_AUTH_METHODS, g as platformBrandUpsertInputSchema, h as platformBrandResourceSchema, i as PLATFORM_EAV_DATA_TYPES, j as platformOAuthClientResourceSchema, k as platformMeSchema, l as PLATFORM_STAGE_COLORS, m as platformBrandImportInputSchema, n as PLATFORM_BRANDAPP_STATUSES, o as PLATFORM_OAUTH_APPLICATION_TYPES, p as PLATFORM_WEBHOOK_TRIGGERS, q as platformTaskStageInputSchema, r as PLATFORM_DOMAIN_STATUSES, s as PLATFORM_OAUTH_CLIENT_PURPOSES, t as PLATFORM_ADMIN_SCOPE, u as PLATFORM_TASK_OUTCOMES, v as platformBrandappUpsertInputSchema, w as platformEavSchemaOperationSchema, x as platformEavEntityResourceSchema, y as platformCustomerUpsertInputSchema, z as platformPublishedPostListQuerySchema } from "./schemas-eWh_FUfh.js";
|
|
4
|
-
import { n as createPlatformClient, t as DEFAULT_PLATFORM_SCOPES } from "./client-
|
|
4
|
+
import { n as createPlatformClient, t as DEFAULT_PLATFORM_SCOPES } from "./client-WEomQekp.js";
|
|
5
5
|
import { CONNECT_OPERATIONS, CONNECT_OPERATION_NAMES, CONNECT_SCOPES, WORKSPACE_PERMISSION_KEYS, can, canAll, canAny, canCall } from "./permissions.js";
|
|
6
|
-
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-
|
|
6
|
+
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-SjWh1rqY.js";
|
|
7
7
|
|
|
8
|
-
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, isPermissionDenied, isPlatformApiError, isPlatformError, isSignInRequired, iterate, listAll, 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 };
|
|
8
|
+
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, 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 };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as ClientPrivateJwk, r as ClientKeyRing } from "../keys-B2pA8EkU.js";
|
|
2
2
|
import { n as PlatformUrls } from "../urls-DiYp_PHg.js";
|
|
3
|
-
import { Ft as platformPipelineUpsertInputSchema, f as PLATFORM_OAUTH_CLIENT_PURPOSES, gt as platformBrandappUpsertInputSchema, mt as platformBrandUpsertInputSchema, v as PLATFORM_WEBHOOK_TRIGGERS } from "../client-
|
|
3
|
+
import { Ft as platformPipelineUpsertInputSchema, f as PLATFORM_OAUTH_CLIENT_PURPOSES, gt as platformBrandappUpsertInputSchema, mt as platformBrandUpsertInputSchema, v as PLATFORM_WEBHOOK_TRIGGERS } from "../client-ByIjKnf3.js";
|
|
4
4
|
import { t as MachineClient } from "../client-DlgVNj3w.js";
|
|
5
5
|
import * as jose from "jose";
|
|
6
6
|
import { z } from "zod";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { l as SDK_VERSION, n as PlatformApiError } from "../errors-C5_fhcqb.js";
|
|
2
2
|
import { resolvePlatformUrls } from "../urls.js";
|
|
3
3
|
import { o as readClientKeyRing } from "../keys-6gwtNd0g.js";
|
|
4
4
|
import { r as createMachineClient } from "../client-XAvKlbbn.js";
|
|
@@ -19,6 +19,8 @@ type Page<T> = {
|
|
|
19
19
|
items: T[];
|
|
20
20
|
/** 다음 장을 읽을 offset. null이면 마지막 장이다 */
|
|
21
21
|
nextOffset: number | null;
|
|
22
|
+
/** 조건에 맞는 전체 건수 — 서버가 세는 목록만 싣는다(`customers.list`). 없으면 undefined */
|
|
23
|
+
total?: number;
|
|
22
24
|
};
|
|
23
25
|
type PageQuery = {
|
|
24
26
|
/** 한 장의 크기 — 자원마다 상한이 있다(넘기면 400) */
|
|
@@ -42,4 +44,4 @@ declare function listAll<T, Q extends PageQuery>(fetchPage: PageFetcher<T, Q>, q
|
|
|
42
44
|
}): Promise<T[]>;
|
|
43
45
|
//#endregion
|
|
44
46
|
export { listAll as a, iterate as i, PageQuery as n, SortOf as r, Page as t };
|
|
45
|
-
//# sourceMappingURL=page-
|
|
47
|
+
//# sourceMappingURL=page-79Ab4UGQ.d.ts.map
|