@bigfootai/bigfoot-types 2.10.3 → 2.10.5
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/model.js +16 -18
- package/model.ts +21 -81
- package/package.json +1 -1
package/model.js
CHANGED
|
@@ -216,16 +216,14 @@ class Tag extends Primitive {
|
|
|
216
216
|
}
|
|
217
217
|
exports.Tag = Tag;
|
|
218
218
|
class BusinessObject extends Primitive {
|
|
219
|
-
constructor(provider,
|
|
219
|
+
constructor(provider, application, uri) {
|
|
220
220
|
super();
|
|
221
221
|
this.processingStage = ProcessingStage.NotProcessed;
|
|
222
222
|
this.processingAttempts = 0;
|
|
223
223
|
this.dateProcessed = 0;
|
|
224
224
|
this.provider = provider;
|
|
225
|
+
this.application = application;
|
|
225
226
|
this.uri = uri;
|
|
226
|
-
this.externalId = externalId;
|
|
227
|
-
this.businessObjectType = businessObjectType;
|
|
228
|
-
this.externalResponse = externalResponse;
|
|
229
227
|
}
|
|
230
228
|
}
|
|
231
229
|
exports.BusinessObject = BusinessObject;
|
|
@@ -290,8 +288,8 @@ class Task extends Block {
|
|
|
290
288
|
}
|
|
291
289
|
exports.Task = Task;
|
|
292
290
|
class Conference extends BusinessObject {
|
|
293
|
-
constructor(provider,
|
|
294
|
-
super(provider,
|
|
291
|
+
constructor(provider, application, uri, entryPoints) {
|
|
292
|
+
super(provider, application, uri);
|
|
295
293
|
this.entryPoints = entryPoints;
|
|
296
294
|
}
|
|
297
295
|
}
|
|
@@ -312,15 +310,15 @@ var ResponseStatus;
|
|
|
312
310
|
ResponseStatus["Accepted"] = "accepted";
|
|
313
311
|
})(ResponseStatus || (exports.ResponseStatus = ResponseStatus = {}));
|
|
314
312
|
class Calendar extends BusinessObject {
|
|
315
|
-
constructor(provider,
|
|
316
|
-
super(provider,
|
|
313
|
+
constructor(provider, application, uri, timeZone) {
|
|
314
|
+
super(provider, application, uri);
|
|
317
315
|
this.timeZone = timeZone;
|
|
318
316
|
}
|
|
319
317
|
}
|
|
320
318
|
exports.Calendar = Calendar;
|
|
321
319
|
class Event extends BusinessObject {
|
|
322
|
-
constructor(provider,
|
|
323
|
-
super(provider,
|
|
320
|
+
constructor(provider, application, uri, calendarId, status, dateStart, organizedBy) {
|
|
321
|
+
super(provider, application, uri);
|
|
324
322
|
this.calendarId = calendarId;
|
|
325
323
|
this.status = status;
|
|
326
324
|
this.dateStart = dateStart;
|
|
@@ -331,8 +329,8 @@ exports.Event = Event;
|
|
|
331
329
|
//// EVENT END
|
|
332
330
|
//// EXTERNAL TASK START
|
|
333
331
|
class ExternalTask extends BusinessObject {
|
|
334
|
-
constructor(provider,
|
|
335
|
-
super(provider,
|
|
332
|
+
constructor(provider, application, uri, status, dateDue) {
|
|
333
|
+
super(provider, application, uri);
|
|
336
334
|
this.status = status;
|
|
337
335
|
this.dateDue = dateDue;
|
|
338
336
|
}
|
|
@@ -341,14 +339,14 @@ exports.ExternalTask = ExternalTask;
|
|
|
341
339
|
//// EXTERNAL TASK END
|
|
342
340
|
//// MESSAGING START
|
|
343
341
|
class Thread extends BusinessObject {
|
|
344
|
-
constructor(provider,
|
|
345
|
-
super(provider,
|
|
342
|
+
constructor(provider, application, uri) {
|
|
343
|
+
super(provider, application, uri);
|
|
346
344
|
}
|
|
347
345
|
}
|
|
348
346
|
exports.Thread = Thread;
|
|
349
347
|
class Template extends BusinessObject {
|
|
350
|
-
constructor(provider,
|
|
351
|
-
super(provider,
|
|
348
|
+
constructor(provider, application, uri, metadata) {
|
|
349
|
+
super(provider, application, uri);
|
|
352
350
|
this.metadata = metadata;
|
|
353
351
|
}
|
|
354
352
|
}
|
|
@@ -374,8 +372,8 @@ var FieldVariation;
|
|
|
374
372
|
FieldVariation["Url"] = "url";
|
|
375
373
|
})(FieldVariation || (exports.FieldVariation = FieldVariation = {}));
|
|
376
374
|
class Table extends BusinessObject {
|
|
377
|
-
constructor(provider,
|
|
378
|
-
super(provider,
|
|
375
|
+
constructor(provider, application, uri, recordType, metadata, values) {
|
|
376
|
+
super(provider, application, uri);
|
|
379
377
|
this.recordType = recordType;
|
|
380
378
|
this.metadata = metadata;
|
|
381
379
|
this.values = values;
|
package/model.ts
CHANGED
|
@@ -401,25 +401,20 @@ export class Tag extends Primitive {
|
|
|
401
401
|
}
|
|
402
402
|
|
|
403
403
|
export class BusinessObject extends Primitive {
|
|
404
|
-
provider: string; // A unique string representing the provider e.g. "salesforce", "
|
|
404
|
+
provider: string; // A unique string representing the provider e.g. "salesforce", "atlassian", etc
|
|
405
|
+
application: string; // A unique string representing the provider application e.g. "service", "jira", etc
|
|
405
406
|
uri: string; // A uri to locate the specific instance of the business object
|
|
406
|
-
externalId: string; // An identifier that allows us to do entity resolution
|
|
407
|
-
businessObjectType: BusinessObjectType;
|
|
408
|
-
externalResponse: any; // The full response from the external system that created this object
|
|
409
407
|
processingStage: ProcessingStage; // Indicates if the business object has been processed yet
|
|
410
408
|
processingAttempts: number; // Indicates the number of attempts made to process this business object
|
|
411
409
|
dateProcessed: number; // The date this document was last processed
|
|
410
|
+
externalId?: string; // An identifier that allows us to do entity resolution
|
|
411
|
+
businessObjectType?: BusinessObjectType;
|
|
412
|
+
externalResponse?: any; // The full response from the external system that created this object
|
|
412
413
|
iconUrl?: string | null; // The url of an icon that represents the business object
|
|
413
414
|
document?: any | null; // The business object formatted as a document for ML to ingest
|
|
414
415
|
parentId?: string | null; // The business object that is the parent of this business object
|
|
415
416
|
|
|
416
|
-
constructor(
|
|
417
|
-
provider: string,
|
|
418
|
-
uri: string,
|
|
419
|
-
externalId: string,
|
|
420
|
-
businessObjectType: BusinessObjectType,
|
|
421
|
-
externalResponse: any
|
|
422
|
-
) {
|
|
417
|
+
constructor(provider: string, application: string, uri: string) {
|
|
423
418
|
super();
|
|
424
419
|
|
|
425
420
|
this.processingStage = ProcessingStage.NotProcessed;
|
|
@@ -427,10 +422,8 @@ export class BusinessObject extends Primitive {
|
|
|
427
422
|
this.dateProcessed = 0;
|
|
428
423
|
|
|
429
424
|
this.provider = provider;
|
|
425
|
+
this.application = application;
|
|
430
426
|
this.uri = uri;
|
|
431
|
-
this.externalId = externalId;
|
|
432
|
-
this.businessObjectType = businessObjectType;
|
|
433
|
-
this.externalResponse = externalResponse;
|
|
434
427
|
}
|
|
435
428
|
}
|
|
436
429
|
|
|
@@ -615,18 +608,11 @@ export class Conference extends BusinessObject {
|
|
|
615
608
|
|
|
616
609
|
constructor(
|
|
617
610
|
provider: string,
|
|
611
|
+
application: string,
|
|
618
612
|
uri: string,
|
|
619
|
-
externalId: string,
|
|
620
|
-
externalResponse: any,
|
|
621
613
|
entryPoints: ConferenceEntrypoint[]
|
|
622
614
|
) {
|
|
623
|
-
super(
|
|
624
|
-
provider,
|
|
625
|
-
uri,
|
|
626
|
-
externalId,
|
|
627
|
-
BusinessObjectType.Conference,
|
|
628
|
-
externalResponse
|
|
629
|
-
);
|
|
615
|
+
super(provider, application, uri);
|
|
630
616
|
|
|
631
617
|
this.entryPoints = entryPoints;
|
|
632
618
|
}
|
|
@@ -678,18 +664,11 @@ export class Calendar extends BusinessObject {
|
|
|
678
664
|
|
|
679
665
|
constructor(
|
|
680
666
|
provider: string,
|
|
667
|
+
application: string,
|
|
681
668
|
uri: string,
|
|
682
|
-
externalId: string,
|
|
683
|
-
externalResponse: any,
|
|
684
669
|
timeZone: string
|
|
685
670
|
) {
|
|
686
|
-
super(
|
|
687
|
-
provider,
|
|
688
|
-
uri,
|
|
689
|
-
externalId,
|
|
690
|
-
BusinessObjectType.Calendar,
|
|
691
|
-
externalResponse
|
|
692
|
-
);
|
|
671
|
+
super(provider, application, uri);
|
|
693
672
|
|
|
694
673
|
this.timeZone = timeZone;
|
|
695
674
|
}
|
|
@@ -712,21 +691,14 @@ export class Event extends BusinessObject {
|
|
|
712
691
|
|
|
713
692
|
constructor(
|
|
714
693
|
provider: string,
|
|
694
|
+
application: string,
|
|
715
695
|
uri: string,
|
|
716
|
-
externalId: string,
|
|
717
|
-
externalResponse: any,
|
|
718
696
|
calendarId: string,
|
|
719
697
|
status: EventStatus,
|
|
720
698
|
dateStart: number,
|
|
721
699
|
organizedBy: PersonReference
|
|
722
700
|
) {
|
|
723
|
-
super(
|
|
724
|
-
provider,
|
|
725
|
-
uri,
|
|
726
|
-
externalId,
|
|
727
|
-
BusinessObjectType.Event,
|
|
728
|
-
externalResponse
|
|
729
|
-
);
|
|
701
|
+
super(provider, application, uri);
|
|
730
702
|
|
|
731
703
|
this.calendarId = calendarId;
|
|
732
704
|
this.status = status;
|
|
@@ -746,19 +718,12 @@ export class ExternalTask extends BusinessObject {
|
|
|
746
718
|
|
|
747
719
|
constructor(
|
|
748
720
|
provider: string,
|
|
721
|
+
application: string,
|
|
749
722
|
uri: string,
|
|
750
|
-
externalId: string,
|
|
751
|
-
externalResponse: any,
|
|
752
723
|
status: TaskStatus,
|
|
753
724
|
dateDue: number
|
|
754
725
|
) {
|
|
755
|
-
super(
|
|
756
|
-
provider,
|
|
757
|
-
uri,
|
|
758
|
-
externalId,
|
|
759
|
-
BusinessObjectType.Task,
|
|
760
|
-
externalResponse
|
|
761
|
-
);
|
|
726
|
+
super(provider, application, uri);
|
|
762
727
|
|
|
763
728
|
this.status = status;
|
|
764
729
|
this.dateDue = dateDue;
|
|
@@ -768,19 +733,8 @@ export class ExternalTask extends BusinessObject {
|
|
|
768
733
|
|
|
769
734
|
//// MESSAGING START
|
|
770
735
|
export class Thread extends BusinessObject {
|
|
771
|
-
constructor(
|
|
772
|
-
provider
|
|
773
|
-
uri: string,
|
|
774
|
-
externalId: string,
|
|
775
|
-
externalResponse: any
|
|
776
|
-
) {
|
|
777
|
-
super(
|
|
778
|
-
provider,
|
|
779
|
-
uri,
|
|
780
|
-
externalId,
|
|
781
|
-
BusinessObjectType.Thread,
|
|
782
|
-
externalResponse
|
|
783
|
-
);
|
|
736
|
+
constructor(provider: string, application: string, uri: string) {
|
|
737
|
+
super(provider, application, uri);
|
|
784
738
|
}
|
|
785
739
|
}
|
|
786
740
|
//// MESSAGING END
|
|
@@ -810,18 +764,11 @@ export class Template extends BusinessObject {
|
|
|
810
764
|
|
|
811
765
|
constructor(
|
|
812
766
|
provider: string,
|
|
767
|
+
application: string,
|
|
813
768
|
uri: string,
|
|
814
|
-
externalId: string,
|
|
815
|
-
externalResponse: any,
|
|
816
769
|
metadata: DocumentMetadata
|
|
817
770
|
) {
|
|
818
|
-
super(
|
|
819
|
-
provider,
|
|
820
|
-
uri,
|
|
821
|
-
externalId,
|
|
822
|
-
BusinessObjectType.Template,
|
|
823
|
-
externalResponse
|
|
824
|
-
);
|
|
771
|
+
super(provider, application, uri);
|
|
825
772
|
|
|
826
773
|
this.metadata = metadata;
|
|
827
774
|
}
|
|
@@ -887,20 +834,13 @@ export class Table extends BusinessObject {
|
|
|
887
834
|
|
|
888
835
|
constructor(
|
|
889
836
|
provider: string,
|
|
837
|
+
application: string,
|
|
890
838
|
uri: string,
|
|
891
|
-
externalId: string,
|
|
892
|
-
externalResponse: any,
|
|
893
839
|
recordType: string,
|
|
894
840
|
metadata: TableMetadata,
|
|
895
841
|
values: FieldValue[]
|
|
896
842
|
) {
|
|
897
|
-
super(
|
|
898
|
-
provider,
|
|
899
|
-
uri,
|
|
900
|
-
externalId,
|
|
901
|
-
BusinessObjectType.Table,
|
|
902
|
-
externalResponse
|
|
903
|
-
);
|
|
843
|
+
super(provider, application, uri);
|
|
904
844
|
|
|
905
845
|
this.recordType = recordType;
|
|
906
846
|
this.metadata = metadata;
|