@vendasta/social-posts 5.17.0 → 5.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/_internal/common-ai-instructions.api.service.mjs +51 -0
- package/esm2020/lib/_internal/content-generation.api.service.mjs +41 -0
- package/esm2020/lib/_internal/index.mjs +3 -1
- package/esm2020/lib/_internal/interfaces/api-v2.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/objects/api-v2.mjs +252 -1
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/esm2020/lib/ai-instructions.service.mjs +46 -0
- package/esm2020/lib/content-generation.service.mjs +19 -0
- package/esm2020/lib/index.mjs +3 -1
- package/fesm2015/vendasta-social-posts.mjs +384 -1
- package/fesm2015/vendasta-social-posts.mjs.map +1 -1
- package/fesm2020/vendasta-social-posts.mjs +384 -1
- package/fesm2020/vendasta-social-posts.mjs.map +1 -1
- package/lib/_internal/common-ai-instructions.api.service.d.ts +18 -0
- package/lib/_internal/content-generation.api.service.d.ts +16 -0
- package/lib/_internal/index.d.ts +2 -0
- package/lib/_internal/interfaces/api-v2.interface.d.ts +39 -0
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/objects/api-v2.d.ts +69 -0
- package/lib/_internal/objects/index.d.ts +1 -1
- package/lib/ai-instructions.service.d.ts +13 -0
- package/lib/content-generation.service.d.ts +10 -0
- package/lib/index.d.ts +2 -0
- package/package.json +1 -1
|
@@ -3370,6 +3370,78 @@ function enumStringToValue(enumRef, value) {
|
|
|
3370
3370
|
}
|
|
3371
3371
|
return enumRef[value];
|
|
3372
3372
|
}
|
|
3373
|
+
class AiInstructions {
|
|
3374
|
+
static fromProto(proto) {
|
|
3375
|
+
let m = new AiInstructions();
|
|
3376
|
+
m = Object.assign(m, proto);
|
|
3377
|
+
return m;
|
|
3378
|
+
}
|
|
3379
|
+
constructor(kwargs) {
|
|
3380
|
+
if (!kwargs) {
|
|
3381
|
+
return;
|
|
3382
|
+
}
|
|
3383
|
+
Object.assign(this, kwargs);
|
|
3384
|
+
}
|
|
3385
|
+
toApiJson() {
|
|
3386
|
+
const toReturn = {};
|
|
3387
|
+
if (typeof this.commonAiInstructions !== 'undefined') {
|
|
3388
|
+
toReturn['commonAiInstructions'] = this.commonAiInstructions;
|
|
3389
|
+
}
|
|
3390
|
+
return toReturn;
|
|
3391
|
+
}
|
|
3392
|
+
}
|
|
3393
|
+
class CreateCommonAiInstructionsRequest {
|
|
3394
|
+
static fromProto(proto) {
|
|
3395
|
+
let m = new CreateCommonAiInstructionsRequest();
|
|
3396
|
+
m = Object.assign(m, proto);
|
|
3397
|
+
if (proto.aiInstructions) {
|
|
3398
|
+
m.aiInstructions = AiInstructions.fromProto(proto.aiInstructions);
|
|
3399
|
+
}
|
|
3400
|
+
return m;
|
|
3401
|
+
}
|
|
3402
|
+
constructor(kwargs) {
|
|
3403
|
+
if (!kwargs) {
|
|
3404
|
+
return;
|
|
3405
|
+
}
|
|
3406
|
+
Object.assign(this, kwargs);
|
|
3407
|
+
}
|
|
3408
|
+
toApiJson() {
|
|
3409
|
+
const toReturn = {};
|
|
3410
|
+
if (typeof this.businessId !== 'undefined') {
|
|
3411
|
+
toReturn['businessId'] = this.businessId;
|
|
3412
|
+
}
|
|
3413
|
+
if (typeof this.partnerId !== 'undefined') {
|
|
3414
|
+
toReturn['partnerId'] = this.partnerId;
|
|
3415
|
+
}
|
|
3416
|
+
if (typeof this.aiInstructions !== 'undefined' && this.aiInstructions !== null) {
|
|
3417
|
+
toReturn['aiInstructions'] = 'toApiJson' in this.aiInstructions ? this.aiInstructions.toApiJson() : this.aiInstructions;
|
|
3418
|
+
}
|
|
3419
|
+
return toReturn;
|
|
3420
|
+
}
|
|
3421
|
+
}
|
|
3422
|
+
class CreateCommonAiInstructionsResponse {
|
|
3423
|
+
static fromProto(proto) {
|
|
3424
|
+
let m = new CreateCommonAiInstructionsResponse();
|
|
3425
|
+
m = Object.assign(m, proto);
|
|
3426
|
+
if (proto.aiInstructions) {
|
|
3427
|
+
m.aiInstructions = AiInstructions.fromProto(proto.aiInstructions);
|
|
3428
|
+
}
|
|
3429
|
+
return m;
|
|
3430
|
+
}
|
|
3431
|
+
constructor(kwargs) {
|
|
3432
|
+
if (!kwargs) {
|
|
3433
|
+
return;
|
|
3434
|
+
}
|
|
3435
|
+
Object.assign(this, kwargs);
|
|
3436
|
+
}
|
|
3437
|
+
toApiJson() {
|
|
3438
|
+
const toReturn = {};
|
|
3439
|
+
if (typeof this.aiInstructions !== 'undefined' && this.aiInstructions !== null) {
|
|
3440
|
+
toReturn['aiInstructions'] = 'toApiJson' in this.aiInstructions ? this.aiInstructions.toApiJson() : this.aiInstructions;
|
|
3441
|
+
}
|
|
3442
|
+
return toReturn;
|
|
3443
|
+
}
|
|
3444
|
+
}
|
|
3373
3445
|
class CreateImageRequest {
|
|
3374
3446
|
static fromProto(proto) {
|
|
3375
3447
|
let m = new CreateImageRequest();
|
|
@@ -3469,6 +3541,113 @@ class DeletePostRequest {
|
|
|
3469
3541
|
return toReturn;
|
|
3470
3542
|
}
|
|
3471
3543
|
}
|
|
3544
|
+
class GeneratePostsRequest {
|
|
3545
|
+
static fromProto(proto) {
|
|
3546
|
+
let m = new GeneratePostsRequest();
|
|
3547
|
+
m = Object.assign(m, proto);
|
|
3548
|
+
if (proto.numberOfPosts) {
|
|
3549
|
+
m.numberOfPosts = parseInt(proto.numberOfPosts, 10);
|
|
3550
|
+
}
|
|
3551
|
+
if (proto.postLength) {
|
|
3552
|
+
m.postLength = parseInt(proto.postLength, 10);
|
|
3553
|
+
}
|
|
3554
|
+
return m;
|
|
3555
|
+
}
|
|
3556
|
+
constructor(kwargs) {
|
|
3557
|
+
if (!kwargs) {
|
|
3558
|
+
return;
|
|
3559
|
+
}
|
|
3560
|
+
Object.assign(this, kwargs);
|
|
3561
|
+
}
|
|
3562
|
+
toApiJson() {
|
|
3563
|
+
const toReturn = {};
|
|
3564
|
+
if (typeof this.numberOfPosts !== 'undefined') {
|
|
3565
|
+
toReturn['numberOfPosts'] = this.numberOfPosts;
|
|
3566
|
+
}
|
|
3567
|
+
if (typeof this.topic !== 'undefined') {
|
|
3568
|
+
toReturn['topic'] = this.topic;
|
|
3569
|
+
}
|
|
3570
|
+
if (typeof this.commonInstructions !== 'undefined') {
|
|
3571
|
+
toReturn['commonInstructions'] = this.commonInstructions;
|
|
3572
|
+
}
|
|
3573
|
+
if (typeof this.tone !== 'undefined') {
|
|
3574
|
+
toReturn['tone'] = this.tone;
|
|
3575
|
+
}
|
|
3576
|
+
if (typeof this.postLength !== 'undefined') {
|
|
3577
|
+
toReturn['postLength'] = this.postLength;
|
|
3578
|
+
}
|
|
3579
|
+
return toReturn;
|
|
3580
|
+
}
|
|
3581
|
+
}
|
|
3582
|
+
class GeneratePostsResponse {
|
|
3583
|
+
static fromProto(proto) {
|
|
3584
|
+
let m = new GeneratePostsResponse();
|
|
3585
|
+
m = Object.assign(m, proto);
|
|
3586
|
+
if (proto.posts) {
|
|
3587
|
+
m.posts = proto.posts.map(GeneratePostsResponsePost.fromProto);
|
|
3588
|
+
}
|
|
3589
|
+
return m;
|
|
3590
|
+
}
|
|
3591
|
+
constructor(kwargs) {
|
|
3592
|
+
if (!kwargs) {
|
|
3593
|
+
return;
|
|
3594
|
+
}
|
|
3595
|
+
Object.assign(this, kwargs);
|
|
3596
|
+
}
|
|
3597
|
+
toApiJson() {
|
|
3598
|
+
const toReturn = {};
|
|
3599
|
+
if (typeof this.posts !== 'undefined' && this.posts !== null) {
|
|
3600
|
+
toReturn['posts'] = 'toApiJson' in this.posts ? this.posts.toApiJson() : this.posts;
|
|
3601
|
+
}
|
|
3602
|
+
return toReturn;
|
|
3603
|
+
}
|
|
3604
|
+
}
|
|
3605
|
+
class GetCommonAiInstructionsRequest {
|
|
3606
|
+
static fromProto(proto) {
|
|
3607
|
+
let m = new GetCommonAiInstructionsRequest();
|
|
3608
|
+
m = Object.assign(m, proto);
|
|
3609
|
+
return m;
|
|
3610
|
+
}
|
|
3611
|
+
constructor(kwargs) {
|
|
3612
|
+
if (!kwargs) {
|
|
3613
|
+
return;
|
|
3614
|
+
}
|
|
3615
|
+
Object.assign(this, kwargs);
|
|
3616
|
+
}
|
|
3617
|
+
toApiJson() {
|
|
3618
|
+
const toReturn = {};
|
|
3619
|
+
if (typeof this.businessId !== 'undefined') {
|
|
3620
|
+
toReturn['businessId'] = this.businessId;
|
|
3621
|
+
}
|
|
3622
|
+
if (typeof this.partnerId !== 'undefined') {
|
|
3623
|
+
toReturn['partnerId'] = this.partnerId;
|
|
3624
|
+
}
|
|
3625
|
+
return toReturn;
|
|
3626
|
+
}
|
|
3627
|
+
}
|
|
3628
|
+
class GetCommonAiInstructionsResponse {
|
|
3629
|
+
static fromProto(proto) {
|
|
3630
|
+
let m = new GetCommonAiInstructionsResponse();
|
|
3631
|
+
m = Object.assign(m, proto);
|
|
3632
|
+
if (proto.aiInstructions) {
|
|
3633
|
+
m.aiInstructions = AiInstructions.fromProto(proto.aiInstructions);
|
|
3634
|
+
}
|
|
3635
|
+
return m;
|
|
3636
|
+
}
|
|
3637
|
+
constructor(kwargs) {
|
|
3638
|
+
if (!kwargs) {
|
|
3639
|
+
return;
|
|
3640
|
+
}
|
|
3641
|
+
Object.assign(this, kwargs);
|
|
3642
|
+
}
|
|
3643
|
+
toApiJson() {
|
|
3644
|
+
const toReturn = {};
|
|
3645
|
+
if (typeof this.aiInstructions !== 'undefined' && this.aiInstructions !== null) {
|
|
3646
|
+
toReturn['aiInstructions'] = 'toApiJson' in this.aiInstructions ? this.aiInstructions.toApiJson() : this.aiInstructions;
|
|
3647
|
+
}
|
|
3648
|
+
return toReturn;
|
|
3649
|
+
}
|
|
3650
|
+
}
|
|
3472
3651
|
class ImageBlob {
|
|
3473
3652
|
static fromProto(proto) {
|
|
3474
3653
|
let m = new ImageBlob();
|
|
@@ -3584,6 +3763,26 @@ class MediaUploadResponse {
|
|
|
3584
3763
|
return toReturn;
|
|
3585
3764
|
}
|
|
3586
3765
|
}
|
|
3766
|
+
class GeneratePostsResponsePost {
|
|
3767
|
+
static fromProto(proto) {
|
|
3768
|
+
let m = new GeneratePostsResponsePost();
|
|
3769
|
+
m = Object.assign(m, proto);
|
|
3770
|
+
return m;
|
|
3771
|
+
}
|
|
3772
|
+
constructor(kwargs) {
|
|
3773
|
+
if (!kwargs) {
|
|
3774
|
+
return;
|
|
3775
|
+
}
|
|
3776
|
+
Object.assign(this, kwargs);
|
|
3777
|
+
}
|
|
3778
|
+
toApiJson() {
|
|
3779
|
+
const toReturn = {};
|
|
3780
|
+
if (typeof this.text !== 'undefined') {
|
|
3781
|
+
toReturn['text'] = this.text;
|
|
3782
|
+
}
|
|
3783
|
+
return toReturn;
|
|
3784
|
+
}
|
|
3785
|
+
}
|
|
3587
3786
|
class RepostSocialPostRequest {
|
|
3588
3787
|
static fromProto(proto) {
|
|
3589
3788
|
let m = new RepostSocialPostRequest();
|
|
@@ -3694,6 +3893,58 @@ class SocialPostResponse {
|
|
|
3694
3893
|
return toReturn;
|
|
3695
3894
|
}
|
|
3696
3895
|
}
|
|
3896
|
+
class UpdateCommonAiInstructionsRequest {
|
|
3897
|
+
static fromProto(proto) {
|
|
3898
|
+
let m = new UpdateCommonAiInstructionsRequest();
|
|
3899
|
+
m = Object.assign(m, proto);
|
|
3900
|
+
if (proto.aiInstructions) {
|
|
3901
|
+
m.aiInstructions = AiInstructions.fromProto(proto.aiInstructions);
|
|
3902
|
+
}
|
|
3903
|
+
return m;
|
|
3904
|
+
}
|
|
3905
|
+
constructor(kwargs) {
|
|
3906
|
+
if (!kwargs) {
|
|
3907
|
+
return;
|
|
3908
|
+
}
|
|
3909
|
+
Object.assign(this, kwargs);
|
|
3910
|
+
}
|
|
3911
|
+
toApiJson() {
|
|
3912
|
+
const toReturn = {};
|
|
3913
|
+
if (typeof this.businessId !== 'undefined') {
|
|
3914
|
+
toReturn['businessId'] = this.businessId;
|
|
3915
|
+
}
|
|
3916
|
+
if (typeof this.partnerId !== 'undefined') {
|
|
3917
|
+
toReturn['partnerId'] = this.partnerId;
|
|
3918
|
+
}
|
|
3919
|
+
if (typeof this.aiInstructions !== 'undefined' && this.aiInstructions !== null) {
|
|
3920
|
+
toReturn['aiInstructions'] = 'toApiJson' in this.aiInstructions ? this.aiInstructions.toApiJson() : this.aiInstructions;
|
|
3921
|
+
}
|
|
3922
|
+
return toReturn;
|
|
3923
|
+
}
|
|
3924
|
+
}
|
|
3925
|
+
class UpdateCommonAiInstructionsResponse {
|
|
3926
|
+
static fromProto(proto) {
|
|
3927
|
+
let m = new UpdateCommonAiInstructionsResponse();
|
|
3928
|
+
m = Object.assign(m, proto);
|
|
3929
|
+
if (proto.aiInstructions) {
|
|
3930
|
+
m.aiInstructions = AiInstructions.fromProto(proto.aiInstructions);
|
|
3931
|
+
}
|
|
3932
|
+
return m;
|
|
3933
|
+
}
|
|
3934
|
+
constructor(kwargs) {
|
|
3935
|
+
if (!kwargs) {
|
|
3936
|
+
return;
|
|
3937
|
+
}
|
|
3938
|
+
Object.assign(this, kwargs);
|
|
3939
|
+
}
|
|
3940
|
+
toApiJson() {
|
|
3941
|
+
const toReturn = {};
|
|
3942
|
+
if (typeof this.aiInstructions !== 'undefined' && this.aiInstructions !== null) {
|
|
3943
|
+
toReturn['aiInstructions'] = 'toApiJson' in this.aiInstructions ? this.aiInstructions.toApiJson() : this.aiInstructions;
|
|
3944
|
+
}
|
|
3945
|
+
return toReturn;
|
|
3946
|
+
}
|
|
3947
|
+
}
|
|
3697
3948
|
class UpdateSocialPostRequest {
|
|
3698
3949
|
static fromProto(proto) {
|
|
3699
3950
|
let m = new UpdateSocialPostRequest();
|
|
@@ -3969,6 +4220,82 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3969
4220
|
args: [{ providedIn: 'root' }]
|
|
3970
4221
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
3971
4222
|
|
|
4223
|
+
// *********************************
|
|
4224
|
+
// Code generated by sdkgen
|
|
4225
|
+
// DO NOT EDIT!.
|
|
4226
|
+
//
|
|
4227
|
+
// API Service.
|
|
4228
|
+
// *********************************
|
|
4229
|
+
class CommonAiInstructionsApiService {
|
|
4230
|
+
constructor(http, hostService) {
|
|
4231
|
+
this.http = http;
|
|
4232
|
+
this.hostService = hostService;
|
|
4233
|
+
this._host = this.hostService.hostWithScheme;
|
|
4234
|
+
}
|
|
4235
|
+
apiOptions() {
|
|
4236
|
+
return {
|
|
4237
|
+
headers: new HttpHeaders({
|
|
4238
|
+
'Content-Type': 'application/json'
|
|
4239
|
+
}),
|
|
4240
|
+
withCredentials: true
|
|
4241
|
+
};
|
|
4242
|
+
}
|
|
4243
|
+
createCommonAiInstructions(r) {
|
|
4244
|
+
const request = (r.toApiJson) ? r : new CreateCommonAiInstructionsRequest(r);
|
|
4245
|
+
return this.http.post(this._host + "/socialposts.v2.CommonAiInstructions/CreateCommonAiInstructions", request.toApiJson(), this.apiOptions())
|
|
4246
|
+
.pipe(map(resp => CreateCommonAiInstructionsResponse.fromProto(resp)));
|
|
4247
|
+
}
|
|
4248
|
+
updateCommonAiInstructions(r) {
|
|
4249
|
+
const request = (r.toApiJson) ? r : new UpdateCommonAiInstructionsRequest(r);
|
|
4250
|
+
return this.http.post(this._host + "/socialposts.v2.CommonAiInstructions/UpdateCommonAiInstructions", request.toApiJson(), this.apiOptions())
|
|
4251
|
+
.pipe(map(resp => UpdateCommonAiInstructionsResponse.fromProto(resp)));
|
|
4252
|
+
}
|
|
4253
|
+
getCommonAiInstructions(r) {
|
|
4254
|
+
const request = (r.toApiJson) ? r : new GetCommonAiInstructionsRequest(r);
|
|
4255
|
+
return this.http.post(this._host + "/socialposts.v2.CommonAiInstructions/GetCommonAiInstructions", request.toApiJson(), this.apiOptions())
|
|
4256
|
+
.pipe(map(resp => GetCommonAiInstructionsResponse.fromProto(resp)));
|
|
4257
|
+
}
|
|
4258
|
+
}
|
|
4259
|
+
CommonAiInstructionsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CommonAiInstructionsApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4260
|
+
CommonAiInstructionsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CommonAiInstructionsApiService, providedIn: 'root' });
|
|
4261
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CommonAiInstructionsApiService, decorators: [{
|
|
4262
|
+
type: Injectable,
|
|
4263
|
+
args: [{ providedIn: 'root' }]
|
|
4264
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
4265
|
+
|
|
4266
|
+
// *********************************
|
|
4267
|
+
// Code generated by sdkgen
|
|
4268
|
+
// DO NOT EDIT!.
|
|
4269
|
+
//
|
|
4270
|
+
// API Service.
|
|
4271
|
+
// *********************************
|
|
4272
|
+
class ContentGenerationApiService {
|
|
4273
|
+
constructor(http, hostService) {
|
|
4274
|
+
this.http = http;
|
|
4275
|
+
this.hostService = hostService;
|
|
4276
|
+
this._host = this.hostService.hostWithScheme;
|
|
4277
|
+
}
|
|
4278
|
+
apiOptions() {
|
|
4279
|
+
return {
|
|
4280
|
+
headers: new HttpHeaders({
|
|
4281
|
+
'Content-Type': 'application/json'
|
|
4282
|
+
}),
|
|
4283
|
+
withCredentials: true
|
|
4284
|
+
};
|
|
4285
|
+
}
|
|
4286
|
+
generatePosts(r) {
|
|
4287
|
+
const request = (r.toApiJson) ? r : new GeneratePostsRequest(r);
|
|
4288
|
+
return this.http.post(this._host + "/socialposts.v2.ContentGeneration/GeneratePosts", request.toApiJson(), this.apiOptions())
|
|
4289
|
+
.pipe(map(resp => GeneratePostsResponse.fromProto(resp)));
|
|
4290
|
+
}
|
|
4291
|
+
}
|
|
4292
|
+
ContentGenerationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContentGenerationApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4293
|
+
ContentGenerationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContentGenerationApiService, providedIn: 'root' });
|
|
4294
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContentGenerationApiService, decorators: [{
|
|
4295
|
+
type: Injectable,
|
|
4296
|
+
args: [{ providedIn: 'root' }]
|
|
4297
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
4298
|
+
|
|
3972
4299
|
// *********************************
|
|
3973
4300
|
// Code generated by sdkgen
|
|
3974
4301
|
// DO NOT EDIT!.
|
|
@@ -4574,6 +4901,62 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
4574
4901
|
args: [{ providedIn: 'root' }]
|
|
4575
4902
|
}], ctorParameters: function () { return [{ type: PostPerformanceApiService }]; } });
|
|
4576
4903
|
|
|
4904
|
+
class AiInstructionService {
|
|
4905
|
+
constructor(instructionsService) {
|
|
4906
|
+
this.instructionsService = instructionsService;
|
|
4907
|
+
}
|
|
4908
|
+
getAiInstructions(businessId, partnerId) {
|
|
4909
|
+
const request = new GetCommonAiInstructionsRequest({
|
|
4910
|
+
businessId: businessId,
|
|
4911
|
+
partnerId: partnerId
|
|
4912
|
+
});
|
|
4913
|
+
return this.instructionsService.getCommonAiInstructions(request);
|
|
4914
|
+
}
|
|
4915
|
+
createAiInstructions(businessId, partnerId, instructions) {
|
|
4916
|
+
const aiInstructions = new AiInstructions({
|
|
4917
|
+
commonAiInstructions: instructions
|
|
4918
|
+
});
|
|
4919
|
+
const request = new CreateCommonAiInstructionsRequest({
|
|
4920
|
+
businessId: businessId,
|
|
4921
|
+
partnerId: partnerId,
|
|
4922
|
+
aiInstructions: aiInstructions
|
|
4923
|
+
});
|
|
4924
|
+
return this.instructionsService.createCommonAiInstructions(request);
|
|
4925
|
+
}
|
|
4926
|
+
updateAiInstructions(businessId, partnerId, instructions) {
|
|
4927
|
+
const aiInstructions = new AiInstructions({
|
|
4928
|
+
commonAiInstructions: instructions
|
|
4929
|
+
});
|
|
4930
|
+
const request = new UpdateCommonAiInstructionsRequest({
|
|
4931
|
+
businessId: businessId,
|
|
4932
|
+
partnerId: partnerId,
|
|
4933
|
+
aiInstructions: aiInstructions,
|
|
4934
|
+
});
|
|
4935
|
+
return this.instructionsService.updateCommonAiInstructions(request);
|
|
4936
|
+
}
|
|
4937
|
+
}
|
|
4938
|
+
AiInstructionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AiInstructionService, deps: [{ token: CommonAiInstructionsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4939
|
+
AiInstructionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AiInstructionService, providedIn: 'root' });
|
|
4940
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AiInstructionService, decorators: [{
|
|
4941
|
+
type: Injectable,
|
|
4942
|
+
args: [{ providedIn: 'root' }]
|
|
4943
|
+
}], ctorParameters: function () { return [{ type: CommonAiInstructionsApiService }]; } });
|
|
4944
|
+
|
|
4945
|
+
class ContentGenerationService {
|
|
4946
|
+
constructor(contentGenerationApiService) {
|
|
4947
|
+
this.contentGenerationApiService = contentGenerationApiService;
|
|
4948
|
+
}
|
|
4949
|
+
generatePosts(r) {
|
|
4950
|
+
return this.contentGenerationApiService.generatePosts(r);
|
|
4951
|
+
}
|
|
4952
|
+
}
|
|
4953
|
+
ContentGenerationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContentGenerationService, deps: [{ token: ContentGenerationApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4954
|
+
ContentGenerationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContentGenerationService, providedIn: 'root' });
|
|
4955
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContentGenerationService, decorators: [{
|
|
4956
|
+
type: Injectable,
|
|
4957
|
+
args: [{ providedIn: 'root' }]
|
|
4958
|
+
}], ctorParameters: function () { return [{ type: ContentGenerationApiService }]; } });
|
|
4959
|
+
|
|
4577
4960
|
class SocialPostsV2Service {
|
|
4578
4961
|
constructor(socialpostV2ApiService) {
|
|
4579
4962
|
this.socialpostV2ApiService = socialpostV2ApiService;
|
|
@@ -4608,5 +4991,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
4608
4991
|
* Generated bundle index. Do not edit.
|
|
4609
4992
|
*/
|
|
4610
4993
|
|
|
4611
|
-
export { CallToAction, CallToActionCallToActionType, CreateImageRequest, CreateImageResponse, CreateMultilocationPostRequest, CreateMultilocationPostResponse, CreatePostTemplateRequest, CreatePostTemplateResponse, DateRangeFilter, DeleteHashtagsRequest, DeleteMultilocationPostRequest, DeletePostRequest, DeletePostTemplateRequest, DeleteSocialPostRequest, EditMultilocationPostRequest, EditMultilocationPostResponse, Error, Event, FacebookPostStats, FieldMask, GenerateCSVForPerformanceStatsRequest, GenerateCSVForPerformanceStatsResponse, GetGeneratedCSVForPerformanceStatsRequest, GetGeneratedCSVForPerformanceStatsResponse, GetMultiSocialPostStatsRequest, GetMultiSocialPostStatsResponse, GetMultiSocialPostsRequest, GetMultiSocialPostsResponse, GetMultilocationPostRequest, GetMultilocationPostResponse, GetPostTemplateRequest, GetPostTemplateResponse, GetScheduledPostCountRequest, GetScheduledPostCountResponse, GetTenorAnonymousIdRequest, GetTenorAnonymousIdResponse, HashTagsService, Hashtag, ImageBlob, ImageCreated, ImageUrl, LinkV2, ListMultilocationPostsForBrandRequest, ListMultilocationPostsForBrandResponse, ListPixabayImagesRequest, ListPixabayImagesResponse, ListPostTemplatesRequest, ListPostTemplatesResponse, ListSocialPostsRequest, ListSocialPostsResponse, ListTenorGifsRequest, ListTenorGifsResponse, Location, Media, MediaEntry, MediaType, MediaUploadRequest, MediaUploadResponse, MessageLength, MetaData, MetadataV2, MultilocationPost, MultilocationPostApiService, MultilocationPostError, MultilocationPostsService, PartnerListScheduledPostsResponse, PartnerListScheduledSocialPostsRequest, PartnerListScheduledSocialPostsRequestFilters, PixabayImage, PixabayImageService, PostAction, PostActionV2, PostContentV2, PostCustomization, PostCustomizationV2, PostData, PostEvent, PostEventV2, PostMediaV2, PostPerformanceApiService, PostPerformanceService, PostStatusV2, PostTemplate, PostTemplatesService, PostType, PostTypeV2, PostingStatus, RemoveFromMultilocationPostRequest, RemoveReason, ReplaceHashtagsRequest, RepostSocialPostRequest, SSIDPostType, SchedulePostRequest, SchedulePostResponse, SchedulePostStatus, ScheduleToAllPagesRequest, ScheduleToAllPagesResponse, SearchHashtagRequest, SearchHashtagResponse, SocialPost, SocialPostData, SocialPostDeletionStatus, SocialPostOutput, SocialPostRequest, SocialPostResponse, SocialPostService, SocialPostStats, SocialPostV2, SocialPostsService, SocialPostsV2Service, SuggestMessageRequest, SuggestMessageResponse, TemplateType, TenorGif, TenorGifMediaMapEntry, TenorGifsService, TenorMediaObject, TwitterPostStats, UpdatePostTemplateRequest, UpdateSocialPostRequest, UpdateSocialPostResponse, YoutubeCustomization, YoutubeCustomizationPrivacyStatus, YoutubeCustomizationV2, YoutubeCustomizationV2PrivacyStatusV2 };
|
|
4994
|
+
export { AiInstructionService, AiInstructions, CallToAction, CallToActionCallToActionType, ContentGenerationService, CreateCommonAiInstructionsRequest, CreateCommonAiInstructionsResponse, CreateImageRequest, CreateImageResponse, CreateMultilocationPostRequest, CreateMultilocationPostResponse, CreatePostTemplateRequest, CreatePostTemplateResponse, DateRangeFilter, DeleteHashtagsRequest, DeleteMultilocationPostRequest, DeletePostRequest, DeletePostTemplateRequest, DeleteSocialPostRequest, EditMultilocationPostRequest, EditMultilocationPostResponse, Error, Event, FacebookPostStats, FieldMask, GenerateCSVForPerformanceStatsRequest, GenerateCSVForPerformanceStatsResponse, GeneratePostsRequest, GeneratePostsResponse, GeneratePostsResponsePost, GetCommonAiInstructionsRequest, GetCommonAiInstructionsResponse, GetGeneratedCSVForPerformanceStatsRequest, GetGeneratedCSVForPerformanceStatsResponse, GetMultiSocialPostStatsRequest, GetMultiSocialPostStatsResponse, GetMultiSocialPostsRequest, GetMultiSocialPostsResponse, GetMultilocationPostRequest, GetMultilocationPostResponse, GetPostTemplateRequest, GetPostTemplateResponse, GetScheduledPostCountRequest, GetScheduledPostCountResponse, GetTenorAnonymousIdRequest, GetTenorAnonymousIdResponse, HashTagsService, Hashtag, ImageBlob, ImageCreated, ImageUrl, LinkV2, ListMultilocationPostsForBrandRequest, ListMultilocationPostsForBrandResponse, ListPixabayImagesRequest, ListPixabayImagesResponse, ListPostTemplatesRequest, ListPostTemplatesResponse, ListSocialPostsRequest, ListSocialPostsResponse, ListTenorGifsRequest, ListTenorGifsResponse, Location, Media, MediaEntry, MediaType, MediaUploadRequest, MediaUploadResponse, MessageLength, MetaData, MetadataV2, MultilocationPost, MultilocationPostApiService, MultilocationPostError, MultilocationPostsService, PartnerListScheduledPostsResponse, PartnerListScheduledSocialPostsRequest, PartnerListScheduledSocialPostsRequestFilters, PixabayImage, PixabayImageService, PostAction, PostActionV2, PostContentV2, PostCustomization, PostCustomizationV2, PostData, PostEvent, PostEventV2, PostMediaV2, PostPerformanceApiService, PostPerformanceService, PostStatusV2, PostTemplate, PostTemplatesService, PostType, PostTypeV2, PostingStatus, RemoveFromMultilocationPostRequest, RemoveReason, ReplaceHashtagsRequest, RepostSocialPostRequest, SSIDPostType, SchedulePostRequest, SchedulePostResponse, SchedulePostStatus, ScheduleToAllPagesRequest, ScheduleToAllPagesResponse, SearchHashtagRequest, SearchHashtagResponse, SocialPost, SocialPostData, SocialPostDeletionStatus, SocialPostOutput, SocialPostRequest, SocialPostResponse, SocialPostService, SocialPostStats, SocialPostV2, SocialPostsService, SocialPostsV2Service, SuggestMessageRequest, SuggestMessageResponse, TemplateType, TenorGif, TenorGifMediaMapEntry, TenorGifsService, TenorMediaObject, TwitterPostStats, UpdateCommonAiInstructionsRequest, UpdateCommonAiInstructionsResponse, UpdatePostTemplateRequest, UpdateSocialPostRequest, UpdateSocialPostResponse, YoutubeCustomization, YoutubeCustomizationPrivacyStatus, YoutubeCustomizationV2, YoutubeCustomizationV2PrivacyStatusV2 };
|
|
4612
4995
|
//# sourceMappingURL=vendasta-social-posts.mjs.map
|