@uniformdev/canvas 20.72.3-alpha.23 → 20.72.3-alpha.25
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/dist/index.d.mts +1292 -915
- package/dist/index.d.ts +1292 -915
- package/dist/index.esm.js +69 -22
- package/dist/index.js +73 -25
- package/dist/index.mjs +69 -22
- package/package.json +5 -5
package/dist/index.esm.js
CHANGED
|
@@ -3172,11 +3172,57 @@ var createCanvasChannel = ({
|
|
|
3172
3172
|
};
|
|
3173
3173
|
};
|
|
3174
3174
|
|
|
3175
|
-
// src/
|
|
3175
|
+
// src/NotificationsClient.ts
|
|
3176
3176
|
import { ApiClient as ApiClient11 } from "@uniformdev/context/api";
|
|
3177
|
+
var _url2;
|
|
3178
|
+
var _NotificationsClient = class _NotificationsClient extends ApiClient11 {
|
|
3179
|
+
constructor(options) {
|
|
3180
|
+
super(options);
|
|
3181
|
+
}
|
|
3182
|
+
/**
|
|
3183
|
+
* Lists notifications for the current user.
|
|
3184
|
+
*
|
|
3185
|
+
* @deprecated This API is experimental and may change without notice.
|
|
3186
|
+
*/
|
|
3187
|
+
async list(options) {
|
|
3188
|
+
const fetchUri = this.createUrl(__privateGet(_NotificationsClient, _url2), options);
|
|
3189
|
+
return await this.apiClient(fetchUri);
|
|
3190
|
+
}
|
|
3191
|
+
/**
|
|
3192
|
+
* Creates a notification for one or more recipients.
|
|
3193
|
+
*
|
|
3194
|
+
* @deprecated This API is experimental and may change without notice.
|
|
3195
|
+
*/
|
|
3196
|
+
async create(body) {
|
|
3197
|
+
const fetchUri = this.createUrl(__privateGet(_NotificationsClient, _url2));
|
|
3198
|
+
return await this.apiClient(fetchUri, {
|
|
3199
|
+
method: "POST",
|
|
3200
|
+
body: JSON.stringify(body)
|
|
3201
|
+
});
|
|
3202
|
+
}
|
|
3203
|
+
/**
|
|
3204
|
+
* Updates the read state of the current user's notifications.
|
|
3205
|
+
*
|
|
3206
|
+
* @deprecated This API is experimental and may change without notice.
|
|
3207
|
+
*/
|
|
3208
|
+
async setReadState(body) {
|
|
3209
|
+
const fetchUri = this.createUrl(__privateGet(_NotificationsClient, _url2));
|
|
3210
|
+
await this.apiClient(fetchUri, {
|
|
3211
|
+
method: "PATCH",
|
|
3212
|
+
body: JSON.stringify(body),
|
|
3213
|
+
expectNoContent: true
|
|
3214
|
+
});
|
|
3215
|
+
}
|
|
3216
|
+
};
|
|
3217
|
+
_url2 = new WeakMap();
|
|
3218
|
+
__privateAdd(_NotificationsClient, _url2, "/api/v1/notifications");
|
|
3219
|
+
var NotificationsClient = _NotificationsClient;
|
|
3220
|
+
|
|
3221
|
+
// src/PreviewClient.ts
|
|
3222
|
+
import { ApiClient as ApiClient12 } from "@uniformdev/context/api";
|
|
3177
3223
|
var previewUrlsUrl = "/api/v1/preview-urls";
|
|
3178
3224
|
var previewViewportsUrl = "/api/v1/preview-viewports";
|
|
3179
|
-
var PreviewClient = class extends
|
|
3225
|
+
var PreviewClient = class extends ApiClient12 {
|
|
3180
3226
|
constructor(options) {
|
|
3181
3227
|
super(options);
|
|
3182
3228
|
}
|
|
@@ -3239,15 +3285,15 @@ var PreviewClient = class extends ApiClient11 {
|
|
|
3239
3285
|
};
|
|
3240
3286
|
|
|
3241
3287
|
// src/ProjectClient.ts
|
|
3242
|
-
import { ApiClient as
|
|
3243
|
-
var
|
|
3244
|
-
var _ProjectClient = class _ProjectClient extends
|
|
3288
|
+
import { ApiClient as ApiClient13 } from "@uniformdev/context/api";
|
|
3289
|
+
var _url3, _projectsUrl;
|
|
3290
|
+
var _ProjectClient = class _ProjectClient extends ApiClient13 {
|
|
3245
3291
|
constructor(options) {
|
|
3246
3292
|
super({ ...options, bypassCache: true });
|
|
3247
3293
|
}
|
|
3248
3294
|
/** Fetches single Project */
|
|
3249
3295
|
async get(options) {
|
|
3250
|
-
const fetchUri = this.createUrl(__privateGet(_ProjectClient,
|
|
3296
|
+
const fetchUri = this.createUrl(__privateGet(_ProjectClient, _url3), { ...options });
|
|
3251
3297
|
return await this.apiClient(fetchUri);
|
|
3252
3298
|
}
|
|
3253
3299
|
/**
|
|
@@ -3265,7 +3311,7 @@ var _ProjectClient = class _ProjectClient extends ApiClient12 {
|
|
|
3265
3311
|
}
|
|
3266
3312
|
/** Updates or creates (based on id) a Project */
|
|
3267
3313
|
async save(body) {
|
|
3268
|
-
const fetchUri = this.createUrl(__privateGet(_ProjectClient,
|
|
3314
|
+
const fetchUri = this.createUrl(__privateGet(_ProjectClient, _url3));
|
|
3269
3315
|
return await this.apiClient(fetchUri, {
|
|
3270
3316
|
method: "PUT",
|
|
3271
3317
|
body: JSON.stringify({ ...body })
|
|
@@ -3277,7 +3323,7 @@ var _ProjectClient = class _ProjectClient extends ApiClient12 {
|
|
|
3277
3323
|
}
|
|
3278
3324
|
/** Deletes a Project */
|
|
3279
3325
|
async remove(body) {
|
|
3280
|
-
const fetchUri = this.createUrl(__privateGet(_ProjectClient,
|
|
3326
|
+
const fetchUri = this.createUrl(__privateGet(_ProjectClient, _url3));
|
|
3281
3327
|
await this.apiClient(fetchUri, {
|
|
3282
3328
|
method: "DELETE",
|
|
3283
3329
|
body: JSON.stringify({ ...body }),
|
|
@@ -3289,9 +3335,9 @@ var _ProjectClient = class _ProjectClient extends ApiClient12 {
|
|
|
3289
3335
|
return this.remove(body);
|
|
3290
3336
|
}
|
|
3291
3337
|
};
|
|
3292
|
-
|
|
3338
|
+
_url3 = new WeakMap();
|
|
3293
3339
|
_projectsUrl = new WeakMap();
|
|
3294
|
-
__privateAdd(_ProjectClient,
|
|
3340
|
+
__privateAdd(_ProjectClient, _url3, "/api/v1/project");
|
|
3295
3341
|
__privateAdd(_ProjectClient, _projectsUrl, "/api/v1/projects");
|
|
3296
3342
|
var ProjectClient = _ProjectClient;
|
|
3297
3343
|
|
|
@@ -3478,9 +3524,9 @@ function queryToProjection(source) {
|
|
|
3478
3524
|
}
|
|
3479
3525
|
|
|
3480
3526
|
// src/PromptClient.ts
|
|
3481
|
-
import { ApiClient as
|
|
3527
|
+
import { ApiClient as ApiClient14 } from "@uniformdev/context/api";
|
|
3482
3528
|
var PromptsUrl = "/api/v1/prompts";
|
|
3483
|
-
var PromptClient = class extends
|
|
3529
|
+
var PromptClient = class extends ApiClient14 {
|
|
3484
3530
|
constructor(options) {
|
|
3485
3531
|
super(options);
|
|
3486
3532
|
}
|
|
@@ -3511,9 +3557,9 @@ var PromptClient = class extends ApiClient13 {
|
|
|
3511
3557
|
};
|
|
3512
3558
|
|
|
3513
3559
|
// src/RelationshipClient.ts
|
|
3514
|
-
import { ApiClient as
|
|
3560
|
+
import { ApiClient as ApiClient15 } from "@uniformdev/context/api";
|
|
3515
3561
|
var RELATIONSHIPS_URL = "/api/v1/relationships";
|
|
3516
|
-
var RelationshipClient = class extends
|
|
3562
|
+
var RelationshipClient = class extends ApiClient15 {
|
|
3517
3563
|
constructor(options) {
|
|
3518
3564
|
super(options);
|
|
3519
3565
|
this.list = async (options) => {
|
|
@@ -3529,9 +3575,9 @@ var RelationshipClient = class extends ApiClient14 {
|
|
|
3529
3575
|
};
|
|
3530
3576
|
|
|
3531
3577
|
// src/ReleaseClient.ts
|
|
3532
|
-
import { ApiClient as
|
|
3578
|
+
import { ApiClient as ApiClient16 } from "@uniformdev/context/api";
|
|
3533
3579
|
var releasesUrl = "/api/v1/releases";
|
|
3534
|
-
var ReleaseClient = class extends
|
|
3580
|
+
var ReleaseClient = class extends ApiClient16 {
|
|
3535
3581
|
constructor(options) {
|
|
3536
3582
|
super(options);
|
|
3537
3583
|
}
|
|
@@ -3579,9 +3625,9 @@ var ReleaseClient = class extends ApiClient15 {
|
|
|
3579
3625
|
};
|
|
3580
3626
|
|
|
3581
3627
|
// src/ReleaseContentsClient.ts
|
|
3582
|
-
import { ApiClient as
|
|
3628
|
+
import { ApiClient as ApiClient17 } from "@uniformdev/context/api";
|
|
3583
3629
|
var releaseContentsUrl = "/api/v1/release-contents";
|
|
3584
|
-
var ReleaseContentsClient = class extends
|
|
3630
|
+
var ReleaseContentsClient = class extends ApiClient17 {
|
|
3585
3631
|
constructor(options) {
|
|
3586
3632
|
super(options);
|
|
3587
3633
|
}
|
|
@@ -3607,9 +3653,9 @@ var ReleaseContentsClient = class extends ApiClient16 {
|
|
|
3607
3653
|
};
|
|
3608
3654
|
|
|
3609
3655
|
// src/RouteClient.ts
|
|
3610
|
-
import { ApiClient as
|
|
3656
|
+
import { ApiClient as ApiClient18 } from "@uniformdev/context/api";
|
|
3611
3657
|
var ROUTE_URL = "/api/v1/route";
|
|
3612
|
-
var RouteClient = class extends
|
|
3658
|
+
var RouteClient = class extends ApiClient18 {
|
|
3613
3659
|
constructor(options) {
|
|
3614
3660
|
var _a;
|
|
3615
3661
|
if (!options.limitPolicy) {
|
|
@@ -4001,9 +4047,9 @@ import { ApiClientError as ApiClientError5 } from "@uniformdev/context/api";
|
|
|
4001
4047
|
var version = "20.73.0";
|
|
4002
4048
|
|
|
4003
4049
|
// src/WorkflowClient.ts
|
|
4004
|
-
import { ApiClient as
|
|
4050
|
+
import { ApiClient as ApiClient19 } from "@uniformdev/context/api";
|
|
4005
4051
|
var workflowsUrl = "/api/v1/workflows";
|
|
4006
|
-
var WorkflowClient = class extends
|
|
4052
|
+
var WorkflowClient = class extends ApiClient19 {
|
|
4007
4053
|
constructor(options) {
|
|
4008
4054
|
super(options);
|
|
4009
4055
|
}
|
|
@@ -4123,6 +4169,7 @@ export {
|
|
|
4123
4169
|
LOCALE_DYNAMIC_INPUT_NAME,
|
|
4124
4170
|
LabelClient,
|
|
4125
4171
|
LocaleClient,
|
|
4172
|
+
NotificationsClient,
|
|
4126
4173
|
PLACEHOLDER_ID,
|
|
4127
4174
|
PreviewClient,
|
|
4128
4175
|
ProjectClient,
|
package/dist/index.js
CHANGED
|
@@ -45,7 +45,7 @@ __export(index_exports, {
|
|
|
45
45
|
ATTRIBUTE_PARAMETER_TYPE: () => ATTRIBUTE_PARAMETER_TYPE,
|
|
46
46
|
ATTRIBUTE_PARAMETER_VALUE: () => ATTRIBUTE_PARAMETER_VALUE,
|
|
47
47
|
ATTRIBUTE_PLACEHOLDER: () => ATTRIBUTE_PLACEHOLDER,
|
|
48
|
-
ApiClientError: () =>
|
|
48
|
+
ApiClientError: () => import_api28.ApiClientError,
|
|
49
49
|
BatchEntry: () => BatchEntry,
|
|
50
50
|
BlockFormatError: () => BlockFormatError,
|
|
51
51
|
CANVAS_BLOCK_PARAM_TYPE: () => CANVAS_BLOCK_PARAM_TYPE,
|
|
@@ -115,6 +115,7 @@ __export(index_exports, {
|
|
|
115
115
|
LOCALE_DYNAMIC_INPUT_NAME: () => LOCALE_DYNAMIC_INPUT_NAME,
|
|
116
116
|
LabelClient: () => LabelClient,
|
|
117
117
|
LocaleClient: () => LocaleClient,
|
|
118
|
+
NotificationsClient: () => NotificationsClient,
|
|
118
119
|
PLACEHOLDER_ID: () => PLACEHOLDER_ID,
|
|
119
120
|
PreviewClient: () => PreviewClient,
|
|
120
121
|
ProjectClient: () => ProjectClient,
|
|
@@ -3387,11 +3388,57 @@ var createCanvasChannel = ({
|
|
|
3387
3388
|
};
|
|
3388
3389
|
};
|
|
3389
3390
|
|
|
3390
|
-
// src/
|
|
3391
|
+
// src/NotificationsClient.ts
|
|
3391
3392
|
var import_api19 = require("@uniformdev/context/api");
|
|
3393
|
+
var _url2;
|
|
3394
|
+
var _NotificationsClient = class _NotificationsClient extends import_api19.ApiClient {
|
|
3395
|
+
constructor(options) {
|
|
3396
|
+
super(options);
|
|
3397
|
+
}
|
|
3398
|
+
/**
|
|
3399
|
+
* Lists notifications for the current user.
|
|
3400
|
+
*
|
|
3401
|
+
* @deprecated This API is experimental and may change without notice.
|
|
3402
|
+
*/
|
|
3403
|
+
async list(options) {
|
|
3404
|
+
const fetchUri = this.createUrl(__privateGet(_NotificationsClient, _url2), options);
|
|
3405
|
+
return await this.apiClient(fetchUri);
|
|
3406
|
+
}
|
|
3407
|
+
/**
|
|
3408
|
+
* Creates a notification for one or more recipients.
|
|
3409
|
+
*
|
|
3410
|
+
* @deprecated This API is experimental and may change without notice.
|
|
3411
|
+
*/
|
|
3412
|
+
async create(body) {
|
|
3413
|
+
const fetchUri = this.createUrl(__privateGet(_NotificationsClient, _url2));
|
|
3414
|
+
return await this.apiClient(fetchUri, {
|
|
3415
|
+
method: "POST",
|
|
3416
|
+
body: JSON.stringify(body)
|
|
3417
|
+
});
|
|
3418
|
+
}
|
|
3419
|
+
/**
|
|
3420
|
+
* Updates the read state of the current user's notifications.
|
|
3421
|
+
*
|
|
3422
|
+
* @deprecated This API is experimental and may change without notice.
|
|
3423
|
+
*/
|
|
3424
|
+
async setReadState(body) {
|
|
3425
|
+
const fetchUri = this.createUrl(__privateGet(_NotificationsClient, _url2));
|
|
3426
|
+
await this.apiClient(fetchUri, {
|
|
3427
|
+
method: "PATCH",
|
|
3428
|
+
body: JSON.stringify(body),
|
|
3429
|
+
expectNoContent: true
|
|
3430
|
+
});
|
|
3431
|
+
}
|
|
3432
|
+
};
|
|
3433
|
+
_url2 = new WeakMap();
|
|
3434
|
+
__privateAdd(_NotificationsClient, _url2, "/api/v1/notifications");
|
|
3435
|
+
var NotificationsClient = _NotificationsClient;
|
|
3436
|
+
|
|
3437
|
+
// src/PreviewClient.ts
|
|
3438
|
+
var import_api20 = require("@uniformdev/context/api");
|
|
3392
3439
|
var previewUrlsUrl = "/api/v1/preview-urls";
|
|
3393
3440
|
var previewViewportsUrl = "/api/v1/preview-viewports";
|
|
3394
|
-
var PreviewClient = class extends
|
|
3441
|
+
var PreviewClient = class extends import_api20.ApiClient {
|
|
3395
3442
|
constructor(options) {
|
|
3396
3443
|
super(options);
|
|
3397
3444
|
}
|
|
@@ -3454,15 +3501,15 @@ var PreviewClient = class extends import_api19.ApiClient {
|
|
|
3454
3501
|
};
|
|
3455
3502
|
|
|
3456
3503
|
// src/ProjectClient.ts
|
|
3457
|
-
var
|
|
3458
|
-
var
|
|
3459
|
-
var _ProjectClient = class _ProjectClient extends
|
|
3504
|
+
var import_api21 = require("@uniformdev/context/api");
|
|
3505
|
+
var _url3, _projectsUrl;
|
|
3506
|
+
var _ProjectClient = class _ProjectClient extends import_api21.ApiClient {
|
|
3460
3507
|
constructor(options) {
|
|
3461
3508
|
super({ ...options, bypassCache: true });
|
|
3462
3509
|
}
|
|
3463
3510
|
/** Fetches single Project */
|
|
3464
3511
|
async get(options) {
|
|
3465
|
-
const fetchUri = this.createUrl(__privateGet(_ProjectClient,
|
|
3512
|
+
const fetchUri = this.createUrl(__privateGet(_ProjectClient, _url3), { ...options });
|
|
3466
3513
|
return await this.apiClient(fetchUri);
|
|
3467
3514
|
}
|
|
3468
3515
|
/**
|
|
@@ -3480,7 +3527,7 @@ var _ProjectClient = class _ProjectClient extends import_api20.ApiClient {
|
|
|
3480
3527
|
}
|
|
3481
3528
|
/** Updates or creates (based on id) a Project */
|
|
3482
3529
|
async save(body) {
|
|
3483
|
-
const fetchUri = this.createUrl(__privateGet(_ProjectClient,
|
|
3530
|
+
const fetchUri = this.createUrl(__privateGet(_ProjectClient, _url3));
|
|
3484
3531
|
return await this.apiClient(fetchUri, {
|
|
3485
3532
|
method: "PUT",
|
|
3486
3533
|
body: JSON.stringify({ ...body })
|
|
@@ -3492,7 +3539,7 @@ var _ProjectClient = class _ProjectClient extends import_api20.ApiClient {
|
|
|
3492
3539
|
}
|
|
3493
3540
|
/** Deletes a Project */
|
|
3494
3541
|
async remove(body) {
|
|
3495
|
-
const fetchUri = this.createUrl(__privateGet(_ProjectClient,
|
|
3542
|
+
const fetchUri = this.createUrl(__privateGet(_ProjectClient, _url3));
|
|
3496
3543
|
await this.apiClient(fetchUri, {
|
|
3497
3544
|
method: "DELETE",
|
|
3498
3545
|
body: JSON.stringify({ ...body }),
|
|
@@ -3504,9 +3551,9 @@ var _ProjectClient = class _ProjectClient extends import_api20.ApiClient {
|
|
|
3504
3551
|
return this.remove(body);
|
|
3505
3552
|
}
|
|
3506
3553
|
};
|
|
3507
|
-
|
|
3554
|
+
_url3 = new WeakMap();
|
|
3508
3555
|
_projectsUrl = new WeakMap();
|
|
3509
|
-
__privateAdd(_ProjectClient,
|
|
3556
|
+
__privateAdd(_ProjectClient, _url3, "/api/v1/project");
|
|
3510
3557
|
__privateAdd(_ProjectClient, _projectsUrl, "/api/v1/projects");
|
|
3511
3558
|
var ProjectClient = _ProjectClient;
|
|
3512
3559
|
|
|
@@ -3693,9 +3740,9 @@ function queryToProjection(source) {
|
|
|
3693
3740
|
}
|
|
3694
3741
|
|
|
3695
3742
|
// src/PromptClient.ts
|
|
3696
|
-
var
|
|
3743
|
+
var import_api22 = require("@uniformdev/context/api");
|
|
3697
3744
|
var PromptsUrl = "/api/v1/prompts";
|
|
3698
|
-
var PromptClient = class extends
|
|
3745
|
+
var PromptClient = class extends import_api22.ApiClient {
|
|
3699
3746
|
constructor(options) {
|
|
3700
3747
|
super(options);
|
|
3701
3748
|
}
|
|
@@ -3726,9 +3773,9 @@ var PromptClient = class extends import_api21.ApiClient {
|
|
|
3726
3773
|
};
|
|
3727
3774
|
|
|
3728
3775
|
// src/RelationshipClient.ts
|
|
3729
|
-
var
|
|
3776
|
+
var import_api23 = require("@uniformdev/context/api");
|
|
3730
3777
|
var RELATIONSHIPS_URL = "/api/v1/relationships";
|
|
3731
|
-
var RelationshipClient = class extends
|
|
3778
|
+
var RelationshipClient = class extends import_api23.ApiClient {
|
|
3732
3779
|
constructor(options) {
|
|
3733
3780
|
super(options);
|
|
3734
3781
|
this.list = async (options) => {
|
|
@@ -3744,9 +3791,9 @@ var RelationshipClient = class extends import_api22.ApiClient {
|
|
|
3744
3791
|
};
|
|
3745
3792
|
|
|
3746
3793
|
// src/ReleaseClient.ts
|
|
3747
|
-
var
|
|
3794
|
+
var import_api24 = require("@uniformdev/context/api");
|
|
3748
3795
|
var releasesUrl = "/api/v1/releases";
|
|
3749
|
-
var ReleaseClient = class extends
|
|
3796
|
+
var ReleaseClient = class extends import_api24.ApiClient {
|
|
3750
3797
|
constructor(options) {
|
|
3751
3798
|
super(options);
|
|
3752
3799
|
}
|
|
@@ -3794,9 +3841,9 @@ var ReleaseClient = class extends import_api23.ApiClient {
|
|
|
3794
3841
|
};
|
|
3795
3842
|
|
|
3796
3843
|
// src/ReleaseContentsClient.ts
|
|
3797
|
-
var
|
|
3844
|
+
var import_api25 = require("@uniformdev/context/api");
|
|
3798
3845
|
var releaseContentsUrl = "/api/v1/release-contents";
|
|
3799
|
-
var ReleaseContentsClient = class extends
|
|
3846
|
+
var ReleaseContentsClient = class extends import_api25.ApiClient {
|
|
3800
3847
|
constructor(options) {
|
|
3801
3848
|
super(options);
|
|
3802
3849
|
}
|
|
@@ -3822,9 +3869,9 @@ var ReleaseContentsClient = class extends import_api24.ApiClient {
|
|
|
3822
3869
|
};
|
|
3823
3870
|
|
|
3824
3871
|
// src/RouteClient.ts
|
|
3825
|
-
var
|
|
3872
|
+
var import_api26 = require("@uniformdev/context/api");
|
|
3826
3873
|
var ROUTE_URL = "/api/v1/route";
|
|
3827
|
-
var RouteClient = class extends
|
|
3874
|
+
var RouteClient = class extends import_api26.ApiClient {
|
|
3828
3875
|
constructor(options) {
|
|
3829
3876
|
var _a;
|
|
3830
3877
|
if (!options.limitPolicy) {
|
|
@@ -4210,15 +4257,15 @@ function handleRichTextNodeBinding(object, options) {
|
|
|
4210
4257
|
}
|
|
4211
4258
|
|
|
4212
4259
|
// src/index.ts
|
|
4213
|
-
var
|
|
4260
|
+
var import_api28 = require("@uniformdev/context/api");
|
|
4214
4261
|
|
|
4215
4262
|
// src/.version.ts
|
|
4216
4263
|
var version = "20.73.0";
|
|
4217
4264
|
|
|
4218
4265
|
// src/WorkflowClient.ts
|
|
4219
|
-
var
|
|
4266
|
+
var import_api27 = require("@uniformdev/context/api");
|
|
4220
4267
|
var workflowsUrl = "/api/v1/workflows";
|
|
4221
|
-
var WorkflowClient = class extends
|
|
4268
|
+
var WorkflowClient = class extends import_api27.ApiClient {
|
|
4222
4269
|
constructor(options) {
|
|
4223
4270
|
super(options);
|
|
4224
4271
|
}
|
|
@@ -4257,7 +4304,7 @@ var WorkflowClient = class extends import_api26.ApiClient {
|
|
|
4257
4304
|
};
|
|
4258
4305
|
|
|
4259
4306
|
// src/index.ts
|
|
4260
|
-
var CanvasClientError =
|
|
4307
|
+
var CanvasClientError = import_api28.ApiClientError;
|
|
4261
4308
|
// Annotate the CommonJS export names for ESM import in node:
|
|
4262
4309
|
0 && (module.exports = {
|
|
4263
4310
|
ASSETS_SOURCE_CUSTOM_URL,
|
|
@@ -4339,6 +4386,7 @@ var CanvasClientError = import_api27.ApiClientError;
|
|
|
4339
4386
|
LOCALE_DYNAMIC_INPUT_NAME,
|
|
4340
4387
|
LabelClient,
|
|
4341
4388
|
LocaleClient,
|
|
4389
|
+
NotificationsClient,
|
|
4342
4390
|
PLACEHOLDER_ID,
|
|
4343
4391
|
PreviewClient,
|
|
4344
4392
|
ProjectClient,
|
package/dist/index.mjs
CHANGED
|
@@ -3172,11 +3172,57 @@ var createCanvasChannel = ({
|
|
|
3172
3172
|
};
|
|
3173
3173
|
};
|
|
3174
3174
|
|
|
3175
|
-
// src/
|
|
3175
|
+
// src/NotificationsClient.ts
|
|
3176
3176
|
import { ApiClient as ApiClient11 } from "@uniformdev/context/api";
|
|
3177
|
+
var _url2;
|
|
3178
|
+
var _NotificationsClient = class _NotificationsClient extends ApiClient11 {
|
|
3179
|
+
constructor(options) {
|
|
3180
|
+
super(options);
|
|
3181
|
+
}
|
|
3182
|
+
/**
|
|
3183
|
+
* Lists notifications for the current user.
|
|
3184
|
+
*
|
|
3185
|
+
* @deprecated This API is experimental and may change without notice.
|
|
3186
|
+
*/
|
|
3187
|
+
async list(options) {
|
|
3188
|
+
const fetchUri = this.createUrl(__privateGet(_NotificationsClient, _url2), options);
|
|
3189
|
+
return await this.apiClient(fetchUri);
|
|
3190
|
+
}
|
|
3191
|
+
/**
|
|
3192
|
+
* Creates a notification for one or more recipients.
|
|
3193
|
+
*
|
|
3194
|
+
* @deprecated This API is experimental and may change without notice.
|
|
3195
|
+
*/
|
|
3196
|
+
async create(body) {
|
|
3197
|
+
const fetchUri = this.createUrl(__privateGet(_NotificationsClient, _url2));
|
|
3198
|
+
return await this.apiClient(fetchUri, {
|
|
3199
|
+
method: "POST",
|
|
3200
|
+
body: JSON.stringify(body)
|
|
3201
|
+
});
|
|
3202
|
+
}
|
|
3203
|
+
/**
|
|
3204
|
+
* Updates the read state of the current user's notifications.
|
|
3205
|
+
*
|
|
3206
|
+
* @deprecated This API is experimental and may change without notice.
|
|
3207
|
+
*/
|
|
3208
|
+
async setReadState(body) {
|
|
3209
|
+
const fetchUri = this.createUrl(__privateGet(_NotificationsClient, _url2));
|
|
3210
|
+
await this.apiClient(fetchUri, {
|
|
3211
|
+
method: "PATCH",
|
|
3212
|
+
body: JSON.stringify(body),
|
|
3213
|
+
expectNoContent: true
|
|
3214
|
+
});
|
|
3215
|
+
}
|
|
3216
|
+
};
|
|
3217
|
+
_url2 = new WeakMap();
|
|
3218
|
+
__privateAdd(_NotificationsClient, _url2, "/api/v1/notifications");
|
|
3219
|
+
var NotificationsClient = _NotificationsClient;
|
|
3220
|
+
|
|
3221
|
+
// src/PreviewClient.ts
|
|
3222
|
+
import { ApiClient as ApiClient12 } from "@uniformdev/context/api";
|
|
3177
3223
|
var previewUrlsUrl = "/api/v1/preview-urls";
|
|
3178
3224
|
var previewViewportsUrl = "/api/v1/preview-viewports";
|
|
3179
|
-
var PreviewClient = class extends
|
|
3225
|
+
var PreviewClient = class extends ApiClient12 {
|
|
3180
3226
|
constructor(options) {
|
|
3181
3227
|
super(options);
|
|
3182
3228
|
}
|
|
@@ -3239,15 +3285,15 @@ var PreviewClient = class extends ApiClient11 {
|
|
|
3239
3285
|
};
|
|
3240
3286
|
|
|
3241
3287
|
// src/ProjectClient.ts
|
|
3242
|
-
import { ApiClient as
|
|
3243
|
-
var
|
|
3244
|
-
var _ProjectClient = class _ProjectClient extends
|
|
3288
|
+
import { ApiClient as ApiClient13 } from "@uniformdev/context/api";
|
|
3289
|
+
var _url3, _projectsUrl;
|
|
3290
|
+
var _ProjectClient = class _ProjectClient extends ApiClient13 {
|
|
3245
3291
|
constructor(options) {
|
|
3246
3292
|
super({ ...options, bypassCache: true });
|
|
3247
3293
|
}
|
|
3248
3294
|
/** Fetches single Project */
|
|
3249
3295
|
async get(options) {
|
|
3250
|
-
const fetchUri = this.createUrl(__privateGet(_ProjectClient,
|
|
3296
|
+
const fetchUri = this.createUrl(__privateGet(_ProjectClient, _url3), { ...options });
|
|
3251
3297
|
return await this.apiClient(fetchUri);
|
|
3252
3298
|
}
|
|
3253
3299
|
/**
|
|
@@ -3265,7 +3311,7 @@ var _ProjectClient = class _ProjectClient extends ApiClient12 {
|
|
|
3265
3311
|
}
|
|
3266
3312
|
/** Updates or creates (based on id) a Project */
|
|
3267
3313
|
async save(body) {
|
|
3268
|
-
const fetchUri = this.createUrl(__privateGet(_ProjectClient,
|
|
3314
|
+
const fetchUri = this.createUrl(__privateGet(_ProjectClient, _url3));
|
|
3269
3315
|
return await this.apiClient(fetchUri, {
|
|
3270
3316
|
method: "PUT",
|
|
3271
3317
|
body: JSON.stringify({ ...body })
|
|
@@ -3277,7 +3323,7 @@ var _ProjectClient = class _ProjectClient extends ApiClient12 {
|
|
|
3277
3323
|
}
|
|
3278
3324
|
/** Deletes a Project */
|
|
3279
3325
|
async remove(body) {
|
|
3280
|
-
const fetchUri = this.createUrl(__privateGet(_ProjectClient,
|
|
3326
|
+
const fetchUri = this.createUrl(__privateGet(_ProjectClient, _url3));
|
|
3281
3327
|
await this.apiClient(fetchUri, {
|
|
3282
3328
|
method: "DELETE",
|
|
3283
3329
|
body: JSON.stringify({ ...body }),
|
|
@@ -3289,9 +3335,9 @@ var _ProjectClient = class _ProjectClient extends ApiClient12 {
|
|
|
3289
3335
|
return this.remove(body);
|
|
3290
3336
|
}
|
|
3291
3337
|
};
|
|
3292
|
-
|
|
3338
|
+
_url3 = new WeakMap();
|
|
3293
3339
|
_projectsUrl = new WeakMap();
|
|
3294
|
-
__privateAdd(_ProjectClient,
|
|
3340
|
+
__privateAdd(_ProjectClient, _url3, "/api/v1/project");
|
|
3295
3341
|
__privateAdd(_ProjectClient, _projectsUrl, "/api/v1/projects");
|
|
3296
3342
|
var ProjectClient = _ProjectClient;
|
|
3297
3343
|
|
|
@@ -3478,9 +3524,9 @@ function queryToProjection(source) {
|
|
|
3478
3524
|
}
|
|
3479
3525
|
|
|
3480
3526
|
// src/PromptClient.ts
|
|
3481
|
-
import { ApiClient as
|
|
3527
|
+
import { ApiClient as ApiClient14 } from "@uniformdev/context/api";
|
|
3482
3528
|
var PromptsUrl = "/api/v1/prompts";
|
|
3483
|
-
var PromptClient = class extends
|
|
3529
|
+
var PromptClient = class extends ApiClient14 {
|
|
3484
3530
|
constructor(options) {
|
|
3485
3531
|
super(options);
|
|
3486
3532
|
}
|
|
@@ -3511,9 +3557,9 @@ var PromptClient = class extends ApiClient13 {
|
|
|
3511
3557
|
};
|
|
3512
3558
|
|
|
3513
3559
|
// src/RelationshipClient.ts
|
|
3514
|
-
import { ApiClient as
|
|
3560
|
+
import { ApiClient as ApiClient15 } from "@uniformdev/context/api";
|
|
3515
3561
|
var RELATIONSHIPS_URL = "/api/v1/relationships";
|
|
3516
|
-
var RelationshipClient = class extends
|
|
3562
|
+
var RelationshipClient = class extends ApiClient15 {
|
|
3517
3563
|
constructor(options) {
|
|
3518
3564
|
super(options);
|
|
3519
3565
|
this.list = async (options) => {
|
|
@@ -3529,9 +3575,9 @@ var RelationshipClient = class extends ApiClient14 {
|
|
|
3529
3575
|
};
|
|
3530
3576
|
|
|
3531
3577
|
// src/ReleaseClient.ts
|
|
3532
|
-
import { ApiClient as
|
|
3578
|
+
import { ApiClient as ApiClient16 } from "@uniformdev/context/api";
|
|
3533
3579
|
var releasesUrl = "/api/v1/releases";
|
|
3534
|
-
var ReleaseClient = class extends
|
|
3580
|
+
var ReleaseClient = class extends ApiClient16 {
|
|
3535
3581
|
constructor(options) {
|
|
3536
3582
|
super(options);
|
|
3537
3583
|
}
|
|
@@ -3579,9 +3625,9 @@ var ReleaseClient = class extends ApiClient15 {
|
|
|
3579
3625
|
};
|
|
3580
3626
|
|
|
3581
3627
|
// src/ReleaseContentsClient.ts
|
|
3582
|
-
import { ApiClient as
|
|
3628
|
+
import { ApiClient as ApiClient17 } from "@uniformdev/context/api";
|
|
3583
3629
|
var releaseContentsUrl = "/api/v1/release-contents";
|
|
3584
|
-
var ReleaseContentsClient = class extends
|
|
3630
|
+
var ReleaseContentsClient = class extends ApiClient17 {
|
|
3585
3631
|
constructor(options) {
|
|
3586
3632
|
super(options);
|
|
3587
3633
|
}
|
|
@@ -3607,9 +3653,9 @@ var ReleaseContentsClient = class extends ApiClient16 {
|
|
|
3607
3653
|
};
|
|
3608
3654
|
|
|
3609
3655
|
// src/RouteClient.ts
|
|
3610
|
-
import { ApiClient as
|
|
3656
|
+
import { ApiClient as ApiClient18 } from "@uniformdev/context/api";
|
|
3611
3657
|
var ROUTE_URL = "/api/v1/route";
|
|
3612
|
-
var RouteClient = class extends
|
|
3658
|
+
var RouteClient = class extends ApiClient18 {
|
|
3613
3659
|
constructor(options) {
|
|
3614
3660
|
var _a;
|
|
3615
3661
|
if (!options.limitPolicy) {
|
|
@@ -4001,9 +4047,9 @@ import { ApiClientError as ApiClientError5 } from "@uniformdev/context/api";
|
|
|
4001
4047
|
var version = "20.73.0";
|
|
4002
4048
|
|
|
4003
4049
|
// src/WorkflowClient.ts
|
|
4004
|
-
import { ApiClient as
|
|
4050
|
+
import { ApiClient as ApiClient19 } from "@uniformdev/context/api";
|
|
4005
4051
|
var workflowsUrl = "/api/v1/workflows";
|
|
4006
|
-
var WorkflowClient = class extends
|
|
4052
|
+
var WorkflowClient = class extends ApiClient19 {
|
|
4007
4053
|
constructor(options) {
|
|
4008
4054
|
super(options);
|
|
4009
4055
|
}
|
|
@@ -4123,6 +4169,7 @@ export {
|
|
|
4123
4169
|
LOCALE_DYNAMIC_INPUT_NAME,
|
|
4124
4170
|
LabelClient,
|
|
4125
4171
|
LocaleClient,
|
|
4172
|
+
NotificationsClient,
|
|
4126
4173
|
PLACEHOLDER_ID,
|
|
4127
4174
|
PreviewClient,
|
|
4128
4175
|
ProjectClient,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/canvas",
|
|
3
|
-
"version": "20.72.3-alpha.
|
|
3
|
+
"version": "20.72.3-alpha.25+cd10fe6e1e",
|
|
4
4
|
"description": "Common functionality and types for Uniform Canvas",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"svix": "1.96.0"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@uniformdev/assets": "20.72.3-alpha.
|
|
40
|
-
"@uniformdev/context": "20.72.3-alpha.
|
|
41
|
-
"@uniformdev/richtext": "20.72.3-alpha.
|
|
39
|
+
"@uniformdev/assets": "20.72.3-alpha.25+cd10fe6e1e",
|
|
40
|
+
"@uniformdev/context": "20.72.3-alpha.25+cd10fe6e1e",
|
|
41
|
+
"@uniformdev/richtext": "20.72.3-alpha.25+cd10fe6e1e",
|
|
42
42
|
"immer": "10.2.0",
|
|
43
43
|
"p-limit": "6.2.0",
|
|
44
44
|
"p-retry": "6.2.1",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"publishConfig": {
|
|
51
51
|
"access": "public"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "cd10fe6e1e8877ed1ec45290d74ac160d597e84e"
|
|
54
54
|
}
|