@sprucelabs/spruce-core-schemas 35.2.0 → 37.0.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/build/.spruce/schemas/core.schemas.types.d.ts +188 -151
- package/build/.spruce/schemas/spruce/v2020_07_22/feedItem.schema.js +7 -15
- package/build/.spruce/schemas/spruce/v2020_07_22/feedItemTarget.schema.d.ts +3 -0
- package/build/.spruce/schemas/spruce/v2020_07_22/feedItemTarget.schema.js +39 -0
- package/build/esm/.spruce/schemas/core.schemas.types.d.ts +188 -151
- package/build/esm/.spruce/schemas/spruce/v2020_07_22/feedItem.schema.js +7 -15
- package/build/esm/.spruce/schemas/spruce/v2020_07_22/feedItemTarget.schema.d.ts +3 -0
- package/build/esm/.spruce/schemas/spruce/v2020_07_22/feedItemTarget.schema.js +37 -0
- package/build/esm/schemas/v2020_07_22/feed.builder.d.ts +52 -10
- package/build/esm/schemas/v2020_07_22/feed.builder.js +18 -10
- package/build/schemas/v2020_07_22/feed.builder.d.ts +52 -10
- package/build/schemas/v2020_07_22/feed.builder.js +18 -10
- package/package.json +8 -8
|
@@ -1638,138 +1638,6 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
|
1638
1638
|
}
|
|
1639
1639
|
type MessageTargetEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.MessageTargetSchema>;
|
|
1640
1640
|
}
|
|
1641
|
-
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
1642
|
-
interface SendMessage {
|
|
1643
|
-
/** . An arbitrary id that can be used to track this message when being sent and not yet assigned an Id. */
|
|
1644
|
-
'trackingId'?: string | undefined | null;
|
|
1645
|
-
'dateSent'?: number | undefined | null;
|
|
1646
|
-
'target': SpruceSchemas.Spruce.v2020_07_22.MessageTarget;
|
|
1647
|
-
'errors'?: string[] | undefined | null;
|
|
1648
|
-
'classification': ("auth" | "transactional" | "promotional" | "incoming");
|
|
1649
|
-
'status'?: ("pending" | "processing" | "sent" | "failed" | "ignored") | undefined | null;
|
|
1650
|
-
'body': string;
|
|
1651
|
-
'context'?: (Record<string, any>) | undefined | null;
|
|
1652
|
-
'topicId'?: string | undefined | null;
|
|
1653
|
-
'links'?: SpruceSchemas.Spruce.v2020_07_22.Link[] | undefined | null;
|
|
1654
|
-
'choices'?: SpruceSchemas.Spruce.v2020_07_22.Choice[] | undefined | null;
|
|
1655
|
-
}
|
|
1656
|
-
interface SendMessageSchema extends SpruceSchema.Schema {
|
|
1657
|
-
id: 'sendMessage';
|
|
1658
|
-
version: 'v2020_07_22';
|
|
1659
|
-
namespace: 'Spruce';
|
|
1660
|
-
name: '';
|
|
1661
|
-
moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas';
|
|
1662
|
-
fields: {
|
|
1663
|
-
/** . An arbitrary id that can be used to track this message when being sent and not yet assigned an Id. */
|
|
1664
|
-
'trackingId': {
|
|
1665
|
-
type: 'id';
|
|
1666
|
-
hint: 'An arbitrary id that can be used to track this message when being sent and not yet assigned an Id.';
|
|
1667
|
-
options: undefined;
|
|
1668
|
-
};
|
|
1669
|
-
/** . */
|
|
1670
|
-
'dateSent': {
|
|
1671
|
-
type: 'number';
|
|
1672
|
-
options: undefined;
|
|
1673
|
-
};
|
|
1674
|
-
/** . */
|
|
1675
|
-
'target': {
|
|
1676
|
-
type: 'schema';
|
|
1677
|
-
isRequired: true;
|
|
1678
|
-
options: {
|
|
1679
|
-
schema: SpruceSchemas.Spruce.v2020_07_22.MessageTargetSchema;
|
|
1680
|
-
};
|
|
1681
|
-
};
|
|
1682
|
-
/** . */
|
|
1683
|
-
'errors': {
|
|
1684
|
-
type: 'text';
|
|
1685
|
-
isPrivate: true;
|
|
1686
|
-
isArray: true;
|
|
1687
|
-
options: undefined;
|
|
1688
|
-
};
|
|
1689
|
-
/** . */
|
|
1690
|
-
'classification': {
|
|
1691
|
-
type: 'select';
|
|
1692
|
-
isRequired: true;
|
|
1693
|
-
options: {
|
|
1694
|
-
choices: [{
|
|
1695
|
-
"value": "auth";
|
|
1696
|
-
"label": "Auth";
|
|
1697
|
-
}, {
|
|
1698
|
-
"value": "transactional";
|
|
1699
|
-
"label": "transactional";
|
|
1700
|
-
}, {
|
|
1701
|
-
"value": "promotional";
|
|
1702
|
-
"label": "Promotional";
|
|
1703
|
-
}, {
|
|
1704
|
-
"value": "incoming";
|
|
1705
|
-
"label": "incoming";
|
|
1706
|
-
}];
|
|
1707
|
-
};
|
|
1708
|
-
};
|
|
1709
|
-
/** . */
|
|
1710
|
-
'status': {
|
|
1711
|
-
type: 'select';
|
|
1712
|
-
isPrivate: true;
|
|
1713
|
-
defaultValue: "pending";
|
|
1714
|
-
options: {
|
|
1715
|
-
choices: [{
|
|
1716
|
-
"value": "pending";
|
|
1717
|
-
"label": "Pending";
|
|
1718
|
-
}, {
|
|
1719
|
-
"value": "processing";
|
|
1720
|
-
"label": "Processing";
|
|
1721
|
-
}, {
|
|
1722
|
-
"value": "sent";
|
|
1723
|
-
"label": "Sent";
|
|
1724
|
-
}, {
|
|
1725
|
-
"value": "failed";
|
|
1726
|
-
"label": "Failed";
|
|
1727
|
-
}, {
|
|
1728
|
-
"value": "ignored";
|
|
1729
|
-
"label": "Ignored";
|
|
1730
|
-
}];
|
|
1731
|
-
};
|
|
1732
|
-
};
|
|
1733
|
-
/** . */
|
|
1734
|
-
'body': {
|
|
1735
|
-
type: 'text';
|
|
1736
|
-
isRequired: true;
|
|
1737
|
-
options: undefined;
|
|
1738
|
-
};
|
|
1739
|
-
/** . */
|
|
1740
|
-
'context': {
|
|
1741
|
-
type: 'raw';
|
|
1742
|
-
isPrivate: true;
|
|
1743
|
-
options: {
|
|
1744
|
-
valueType: `Record<string, any>`;
|
|
1745
|
-
};
|
|
1746
|
-
};
|
|
1747
|
-
/** . */
|
|
1748
|
-
'topicId': {
|
|
1749
|
-
type: 'id';
|
|
1750
|
-
options: undefined;
|
|
1751
|
-
};
|
|
1752
|
-
/** . */
|
|
1753
|
-
'links': {
|
|
1754
|
-
type: 'schema';
|
|
1755
|
-
isArray: true;
|
|
1756
|
-
minArrayLength: 0;
|
|
1757
|
-
options: {
|
|
1758
|
-
schema: SpruceSchemas.Spruce.v2020_07_22.LinkSchema;
|
|
1759
|
-
};
|
|
1760
|
-
};
|
|
1761
|
-
/** . */
|
|
1762
|
-
'choices': {
|
|
1763
|
-
type: 'schema';
|
|
1764
|
-
isArray: true;
|
|
1765
|
-
options: {
|
|
1766
|
-
schema: SpruceSchemas.Spruce.v2020_07_22.ChoiceSchema;
|
|
1767
|
-
};
|
|
1768
|
-
};
|
|
1769
|
-
};
|
|
1770
|
-
}
|
|
1771
|
-
type SendMessageEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.SendMessageSchema>;
|
|
1772
|
-
}
|
|
1773
1641
|
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
1774
1642
|
/** A discrete communication between two humans or a human and a machine. */
|
|
1775
1643
|
interface Message {
|
|
@@ -3106,6 +2974,52 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
|
3106
2974
|
}
|
|
3107
2975
|
type LinkEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.LinkSchema>;
|
|
3108
2976
|
}
|
|
2977
|
+
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
2978
|
+
interface FeedItemTarget {
|
|
2979
|
+
'personId'?: string | undefined | null;
|
|
2980
|
+
'personCasualName'?: string | undefined | null;
|
|
2981
|
+
'personAvatar'?: SpruceSchema.ImageFieldValue | undefined | null;
|
|
2982
|
+
'skillId'?: string | undefined | null;
|
|
2983
|
+
'skillName'?: string | undefined | null;
|
|
2984
|
+
}
|
|
2985
|
+
interface FeedItemTargetSchema extends SpruceSchema.Schema {
|
|
2986
|
+
id: 'feedItemTarget';
|
|
2987
|
+
version: 'v2020_07_22';
|
|
2988
|
+
namespace: 'Spruce';
|
|
2989
|
+
name: '';
|
|
2990
|
+
moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas';
|
|
2991
|
+
fields: {
|
|
2992
|
+
/** . */
|
|
2993
|
+
'personId': {
|
|
2994
|
+
type: 'id';
|
|
2995
|
+
options: undefined;
|
|
2996
|
+
};
|
|
2997
|
+
/** . */
|
|
2998
|
+
'personCasualName': {
|
|
2999
|
+
type: 'text';
|
|
3000
|
+
options: undefined;
|
|
3001
|
+
};
|
|
3002
|
+
/** . */
|
|
3003
|
+
'personAvatar': {
|
|
3004
|
+
type: 'image';
|
|
3005
|
+
options: {
|
|
3006
|
+
requiredSizes: ["*"];
|
|
3007
|
+
};
|
|
3008
|
+
};
|
|
3009
|
+
/** . */
|
|
3010
|
+
'skillId': {
|
|
3011
|
+
type: 'id';
|
|
3012
|
+
options: undefined;
|
|
3013
|
+
};
|
|
3014
|
+
/** . */
|
|
3015
|
+
'skillName': {
|
|
3016
|
+
type: 'text';
|
|
3017
|
+
options: undefined;
|
|
3018
|
+
};
|
|
3019
|
+
};
|
|
3020
|
+
}
|
|
3021
|
+
type FeedItemTargetEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.FeedItemTargetSchema>;
|
|
3022
|
+
}
|
|
3109
3023
|
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
3110
3024
|
interface Choice {
|
|
3111
3025
|
'value': string;
|
|
@@ -3134,16 +3048,146 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
|
3134
3048
|
}
|
|
3135
3049
|
type ChoiceEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.ChoiceSchema>;
|
|
3136
3050
|
}
|
|
3051
|
+
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
3052
|
+
interface SendMessage {
|
|
3053
|
+
/** . An arbitrary id that can be used to track this message when being sent and not yet assigned an Id. */
|
|
3054
|
+
'trackingId'?: string | undefined | null;
|
|
3055
|
+
'dateSent'?: number | undefined | null;
|
|
3056
|
+
'target': SpruceSchemas.Spruce.v2020_07_22.MessageTarget;
|
|
3057
|
+
'errors'?: string[] | undefined | null;
|
|
3058
|
+
'classification': ("auth" | "transactional" | "promotional" | "incoming");
|
|
3059
|
+
'status'?: ("pending" | "processing" | "sent" | "failed" | "ignored") | undefined | null;
|
|
3060
|
+
'body': string;
|
|
3061
|
+
'context'?: (Record<string, any>) | undefined | null;
|
|
3062
|
+
'topicId'?: string | undefined | null;
|
|
3063
|
+
'links'?: SpruceSchemas.Spruce.v2020_07_22.Link[] | undefined | null;
|
|
3064
|
+
'choices'?: SpruceSchemas.Spruce.v2020_07_22.Choice[] | undefined | null;
|
|
3065
|
+
}
|
|
3066
|
+
interface SendMessageSchema extends SpruceSchema.Schema {
|
|
3067
|
+
id: 'sendMessage';
|
|
3068
|
+
version: 'v2020_07_22';
|
|
3069
|
+
namespace: 'Spruce';
|
|
3070
|
+
name: '';
|
|
3071
|
+
moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas';
|
|
3072
|
+
fields: {
|
|
3073
|
+
/** . An arbitrary id that can be used to track this message when being sent and not yet assigned an Id. */
|
|
3074
|
+
'trackingId': {
|
|
3075
|
+
type: 'id';
|
|
3076
|
+
hint: 'An arbitrary id that can be used to track this message when being sent and not yet assigned an Id.';
|
|
3077
|
+
options: undefined;
|
|
3078
|
+
};
|
|
3079
|
+
/** . */
|
|
3080
|
+
'dateSent': {
|
|
3081
|
+
type: 'number';
|
|
3082
|
+
options: undefined;
|
|
3083
|
+
};
|
|
3084
|
+
/** . */
|
|
3085
|
+
'target': {
|
|
3086
|
+
type: 'schema';
|
|
3087
|
+
isRequired: true;
|
|
3088
|
+
options: {
|
|
3089
|
+
schema: SpruceSchemas.Spruce.v2020_07_22.MessageTargetSchema;
|
|
3090
|
+
};
|
|
3091
|
+
};
|
|
3092
|
+
/** . */
|
|
3093
|
+
'errors': {
|
|
3094
|
+
type: 'text';
|
|
3095
|
+
isPrivate: true;
|
|
3096
|
+
isArray: true;
|
|
3097
|
+
options: undefined;
|
|
3098
|
+
};
|
|
3099
|
+
/** . */
|
|
3100
|
+
'classification': {
|
|
3101
|
+
type: 'select';
|
|
3102
|
+
isRequired: true;
|
|
3103
|
+
options: {
|
|
3104
|
+
choices: [{
|
|
3105
|
+
"value": "auth";
|
|
3106
|
+
"label": "Auth";
|
|
3107
|
+
}, {
|
|
3108
|
+
"value": "transactional";
|
|
3109
|
+
"label": "transactional";
|
|
3110
|
+
}, {
|
|
3111
|
+
"value": "promotional";
|
|
3112
|
+
"label": "Promotional";
|
|
3113
|
+
}, {
|
|
3114
|
+
"value": "incoming";
|
|
3115
|
+
"label": "incoming";
|
|
3116
|
+
}];
|
|
3117
|
+
};
|
|
3118
|
+
};
|
|
3119
|
+
/** . */
|
|
3120
|
+
'status': {
|
|
3121
|
+
type: 'select';
|
|
3122
|
+
isPrivate: true;
|
|
3123
|
+
defaultValue: "pending";
|
|
3124
|
+
options: {
|
|
3125
|
+
choices: [{
|
|
3126
|
+
"value": "pending";
|
|
3127
|
+
"label": "Pending";
|
|
3128
|
+
}, {
|
|
3129
|
+
"value": "processing";
|
|
3130
|
+
"label": "Processing";
|
|
3131
|
+
}, {
|
|
3132
|
+
"value": "sent";
|
|
3133
|
+
"label": "Sent";
|
|
3134
|
+
}, {
|
|
3135
|
+
"value": "failed";
|
|
3136
|
+
"label": "Failed";
|
|
3137
|
+
}, {
|
|
3138
|
+
"value": "ignored";
|
|
3139
|
+
"label": "Ignored";
|
|
3140
|
+
}];
|
|
3141
|
+
};
|
|
3142
|
+
};
|
|
3143
|
+
/** . */
|
|
3144
|
+
'body': {
|
|
3145
|
+
type: 'text';
|
|
3146
|
+
isRequired: true;
|
|
3147
|
+
options: undefined;
|
|
3148
|
+
};
|
|
3149
|
+
/** . */
|
|
3150
|
+
'context': {
|
|
3151
|
+
type: 'raw';
|
|
3152
|
+
isPrivate: true;
|
|
3153
|
+
options: {
|
|
3154
|
+
valueType: `Record<string, any>`;
|
|
3155
|
+
};
|
|
3156
|
+
};
|
|
3157
|
+
/** . */
|
|
3158
|
+
'topicId': {
|
|
3159
|
+
type: 'id';
|
|
3160
|
+
options: undefined;
|
|
3161
|
+
};
|
|
3162
|
+
/** . */
|
|
3163
|
+
'links': {
|
|
3164
|
+
type: 'schema';
|
|
3165
|
+
isArray: true;
|
|
3166
|
+
minArrayLength: 0;
|
|
3167
|
+
options: {
|
|
3168
|
+
schema: SpruceSchemas.Spruce.v2020_07_22.LinkSchema;
|
|
3169
|
+
};
|
|
3170
|
+
};
|
|
3171
|
+
/** . */
|
|
3172
|
+
'choices': {
|
|
3173
|
+
type: 'schema';
|
|
3174
|
+
isArray: true;
|
|
3175
|
+
options: {
|
|
3176
|
+
schema: SpruceSchemas.Spruce.v2020_07_22.ChoiceSchema;
|
|
3177
|
+
};
|
|
3178
|
+
};
|
|
3179
|
+
};
|
|
3180
|
+
}
|
|
3181
|
+
type SendMessageEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.SendMessageSchema>;
|
|
3182
|
+
}
|
|
3137
3183
|
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
3138
3184
|
interface FeedItem {
|
|
3139
3185
|
'id': string;
|
|
3140
|
-
'isMe'?: boolean | undefined | null;
|
|
3141
3186
|
'message': string;
|
|
3142
3187
|
'dateCreated': SpruceSchema.DateTimeFieldValue;
|
|
3143
3188
|
'note'?: string | undefined | null;
|
|
3144
|
-
'
|
|
3145
|
-
'
|
|
3146
|
-
'fromCasualName': string;
|
|
3189
|
+
'source': SpruceSchemas.Spruce.v2020_07_22.FeedItemTarget;
|
|
3190
|
+
'target': SpruceSchemas.Spruce.v2020_07_22.FeedItemTarget;
|
|
3147
3191
|
'avatar'?: SpruceSchema.ImageFieldValue | undefined | null;
|
|
3148
3192
|
'choices'?: SpruceSchemas.Spruce.v2020_07_22.Choice[] | undefined | null;
|
|
3149
3193
|
'links'?: SpruceSchemas.Spruce.v2020_07_22.Link[] | undefined | null;
|
|
@@ -3162,11 +3206,6 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
|
3162
3206
|
options: undefined;
|
|
3163
3207
|
};
|
|
3164
3208
|
/** . */
|
|
3165
|
-
'isMe': {
|
|
3166
|
-
type: 'boolean';
|
|
3167
|
-
options: undefined;
|
|
3168
|
-
};
|
|
3169
|
-
/** . */
|
|
3170
3209
|
'message': {
|
|
3171
3210
|
type: 'text';
|
|
3172
3211
|
isRequired: true;
|
|
@@ -3184,22 +3223,20 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
|
3184
3223
|
options: undefined;
|
|
3185
3224
|
};
|
|
3186
3225
|
/** . */
|
|
3187
|
-
'isSprucebot': {
|
|
3188
|
-
type: 'boolean';
|
|
3189
|
-
options: undefined;
|
|
3190
|
-
};
|
|
3191
|
-
/** . */
|
|
3192
3226
|
'source': {
|
|
3193
|
-
type: '
|
|
3227
|
+
type: 'schema';
|
|
3228
|
+
isRequired: true;
|
|
3194
3229
|
options: {
|
|
3195
|
-
|
|
3230
|
+
schema: SpruceSchemas.Spruce.v2020_07_22.FeedItemTargetSchema;
|
|
3196
3231
|
};
|
|
3197
3232
|
};
|
|
3198
3233
|
/** . */
|
|
3199
|
-
'
|
|
3200
|
-
type: '
|
|
3234
|
+
'target': {
|
|
3235
|
+
type: 'schema';
|
|
3201
3236
|
isRequired: true;
|
|
3202
|
-
options:
|
|
3237
|
+
options: {
|
|
3238
|
+
schema: SpruceSchemas.Spruce.v2020_07_22.FeedItemTargetSchema;
|
|
3239
|
+
};
|
|
3203
3240
|
};
|
|
3204
3241
|
/** . */
|
|
3205
3242
|
'avatar': {
|
|
@@ -4,6 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const schema_1 = require("@sprucelabs/schema");
|
|
7
|
+
const feedItemTarget_schema_1 = __importDefault(require("./feedItemTarget.schema"));
|
|
7
8
|
const choice_schema_1 = __importDefault(require("./choice.schema"));
|
|
8
9
|
const link_schema_1 = __importDefault(require("./link.schema"));
|
|
9
10
|
const feedItemSchema = {
|
|
@@ -20,11 +21,6 @@ const feedItemSchema = {
|
|
|
20
21
|
options: undefined
|
|
21
22
|
},
|
|
22
23
|
/** . */
|
|
23
|
-
'isMe': {
|
|
24
|
-
type: 'boolean',
|
|
25
|
-
options: undefined
|
|
26
|
-
},
|
|
27
|
-
/** . */
|
|
28
24
|
'message': {
|
|
29
25
|
type: 'text',
|
|
30
26
|
isRequired: true,
|
|
@@ -42,20 +38,16 @@ const feedItemSchema = {
|
|
|
42
38
|
options: undefined
|
|
43
39
|
},
|
|
44
40
|
/** . */
|
|
45
|
-
'isSprucebot': {
|
|
46
|
-
type: 'boolean',
|
|
47
|
-
options: undefined
|
|
48
|
-
},
|
|
49
|
-
/** . */
|
|
50
41
|
'source': {
|
|
51
|
-
type: '
|
|
52
|
-
|
|
42
|
+
type: 'schema',
|
|
43
|
+
isRequired: true,
|
|
44
|
+
options: { schema: feedItemTarget_schema_1.default, }
|
|
53
45
|
},
|
|
54
46
|
/** . */
|
|
55
|
-
'
|
|
56
|
-
type: '
|
|
47
|
+
'target': {
|
|
48
|
+
type: 'schema',
|
|
57
49
|
isRequired: true,
|
|
58
|
-
options:
|
|
50
|
+
options: { schema: feedItemTarget_schema_1.default, }
|
|
59
51
|
},
|
|
60
52
|
/** . */
|
|
61
53
|
'avatar': {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const schema_1 = require("@sprucelabs/schema");
|
|
4
|
+
const feedItemTargetSchema = {
|
|
5
|
+
id: 'feedItemTarget',
|
|
6
|
+
version: 'v2020_07_22',
|
|
7
|
+
namespace: 'Spruce',
|
|
8
|
+
name: '',
|
|
9
|
+
moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas',
|
|
10
|
+
fields: {
|
|
11
|
+
/** . */
|
|
12
|
+
'personId': {
|
|
13
|
+
type: 'id',
|
|
14
|
+
options: undefined
|
|
15
|
+
},
|
|
16
|
+
/** . */
|
|
17
|
+
'personCasualName': {
|
|
18
|
+
type: 'text',
|
|
19
|
+
options: undefined
|
|
20
|
+
},
|
|
21
|
+
/** . */
|
|
22
|
+
'personAvatar': {
|
|
23
|
+
type: 'image',
|
|
24
|
+
options: { requiredSizes: ["*"], }
|
|
25
|
+
},
|
|
26
|
+
/** . */
|
|
27
|
+
'skillId': {
|
|
28
|
+
type: 'id',
|
|
29
|
+
options: undefined
|
|
30
|
+
},
|
|
31
|
+
/** . */
|
|
32
|
+
'skillName': {
|
|
33
|
+
type: 'text',
|
|
34
|
+
options: undefined
|
|
35
|
+
},
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
schema_1.SchemaRegistry.getInstance().trackSchema(feedItemTargetSchema);
|
|
39
|
+
exports.default = feedItemTargetSchema;
|
|
@@ -1638,138 +1638,6 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
|
1638
1638
|
}
|
|
1639
1639
|
type MessageTargetEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.MessageTargetSchema>;
|
|
1640
1640
|
}
|
|
1641
|
-
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
1642
|
-
interface SendMessage {
|
|
1643
|
-
/** . An arbitrary id that can be used to track this message when being sent and not yet assigned an Id. */
|
|
1644
|
-
'trackingId'?: string | undefined | null;
|
|
1645
|
-
'dateSent'?: number | undefined | null;
|
|
1646
|
-
'target': SpruceSchemas.Spruce.v2020_07_22.MessageTarget;
|
|
1647
|
-
'errors'?: string[] | undefined | null;
|
|
1648
|
-
'classification': ("auth" | "transactional" | "promotional" | "incoming");
|
|
1649
|
-
'status'?: ("pending" | "processing" | "sent" | "failed" | "ignored") | undefined | null;
|
|
1650
|
-
'body': string;
|
|
1651
|
-
'context'?: (Record<string, any>) | undefined | null;
|
|
1652
|
-
'topicId'?: string | undefined | null;
|
|
1653
|
-
'links'?: SpruceSchemas.Spruce.v2020_07_22.Link[] | undefined | null;
|
|
1654
|
-
'choices'?: SpruceSchemas.Spruce.v2020_07_22.Choice[] | undefined | null;
|
|
1655
|
-
}
|
|
1656
|
-
interface SendMessageSchema extends SpruceSchema.Schema {
|
|
1657
|
-
id: 'sendMessage';
|
|
1658
|
-
version: 'v2020_07_22';
|
|
1659
|
-
namespace: 'Spruce';
|
|
1660
|
-
name: '';
|
|
1661
|
-
moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas';
|
|
1662
|
-
fields: {
|
|
1663
|
-
/** . An arbitrary id that can be used to track this message when being sent and not yet assigned an Id. */
|
|
1664
|
-
'trackingId': {
|
|
1665
|
-
type: 'id';
|
|
1666
|
-
hint: 'An arbitrary id that can be used to track this message when being sent and not yet assigned an Id.';
|
|
1667
|
-
options: undefined;
|
|
1668
|
-
};
|
|
1669
|
-
/** . */
|
|
1670
|
-
'dateSent': {
|
|
1671
|
-
type: 'number';
|
|
1672
|
-
options: undefined;
|
|
1673
|
-
};
|
|
1674
|
-
/** . */
|
|
1675
|
-
'target': {
|
|
1676
|
-
type: 'schema';
|
|
1677
|
-
isRequired: true;
|
|
1678
|
-
options: {
|
|
1679
|
-
schema: SpruceSchemas.Spruce.v2020_07_22.MessageTargetSchema;
|
|
1680
|
-
};
|
|
1681
|
-
};
|
|
1682
|
-
/** . */
|
|
1683
|
-
'errors': {
|
|
1684
|
-
type: 'text';
|
|
1685
|
-
isPrivate: true;
|
|
1686
|
-
isArray: true;
|
|
1687
|
-
options: undefined;
|
|
1688
|
-
};
|
|
1689
|
-
/** . */
|
|
1690
|
-
'classification': {
|
|
1691
|
-
type: 'select';
|
|
1692
|
-
isRequired: true;
|
|
1693
|
-
options: {
|
|
1694
|
-
choices: [{
|
|
1695
|
-
"value": "auth";
|
|
1696
|
-
"label": "Auth";
|
|
1697
|
-
}, {
|
|
1698
|
-
"value": "transactional";
|
|
1699
|
-
"label": "transactional";
|
|
1700
|
-
}, {
|
|
1701
|
-
"value": "promotional";
|
|
1702
|
-
"label": "Promotional";
|
|
1703
|
-
}, {
|
|
1704
|
-
"value": "incoming";
|
|
1705
|
-
"label": "incoming";
|
|
1706
|
-
}];
|
|
1707
|
-
};
|
|
1708
|
-
};
|
|
1709
|
-
/** . */
|
|
1710
|
-
'status': {
|
|
1711
|
-
type: 'select';
|
|
1712
|
-
isPrivate: true;
|
|
1713
|
-
defaultValue: "pending";
|
|
1714
|
-
options: {
|
|
1715
|
-
choices: [{
|
|
1716
|
-
"value": "pending";
|
|
1717
|
-
"label": "Pending";
|
|
1718
|
-
}, {
|
|
1719
|
-
"value": "processing";
|
|
1720
|
-
"label": "Processing";
|
|
1721
|
-
}, {
|
|
1722
|
-
"value": "sent";
|
|
1723
|
-
"label": "Sent";
|
|
1724
|
-
}, {
|
|
1725
|
-
"value": "failed";
|
|
1726
|
-
"label": "Failed";
|
|
1727
|
-
}, {
|
|
1728
|
-
"value": "ignored";
|
|
1729
|
-
"label": "Ignored";
|
|
1730
|
-
}];
|
|
1731
|
-
};
|
|
1732
|
-
};
|
|
1733
|
-
/** . */
|
|
1734
|
-
'body': {
|
|
1735
|
-
type: 'text';
|
|
1736
|
-
isRequired: true;
|
|
1737
|
-
options: undefined;
|
|
1738
|
-
};
|
|
1739
|
-
/** . */
|
|
1740
|
-
'context': {
|
|
1741
|
-
type: 'raw';
|
|
1742
|
-
isPrivate: true;
|
|
1743
|
-
options: {
|
|
1744
|
-
valueType: `Record<string, any>`;
|
|
1745
|
-
};
|
|
1746
|
-
};
|
|
1747
|
-
/** . */
|
|
1748
|
-
'topicId': {
|
|
1749
|
-
type: 'id';
|
|
1750
|
-
options: undefined;
|
|
1751
|
-
};
|
|
1752
|
-
/** . */
|
|
1753
|
-
'links': {
|
|
1754
|
-
type: 'schema';
|
|
1755
|
-
isArray: true;
|
|
1756
|
-
minArrayLength: 0;
|
|
1757
|
-
options: {
|
|
1758
|
-
schema: SpruceSchemas.Spruce.v2020_07_22.LinkSchema;
|
|
1759
|
-
};
|
|
1760
|
-
};
|
|
1761
|
-
/** . */
|
|
1762
|
-
'choices': {
|
|
1763
|
-
type: 'schema';
|
|
1764
|
-
isArray: true;
|
|
1765
|
-
options: {
|
|
1766
|
-
schema: SpruceSchemas.Spruce.v2020_07_22.ChoiceSchema;
|
|
1767
|
-
};
|
|
1768
|
-
};
|
|
1769
|
-
};
|
|
1770
|
-
}
|
|
1771
|
-
type SendMessageEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.SendMessageSchema>;
|
|
1772
|
-
}
|
|
1773
1641
|
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
1774
1642
|
/** A discrete communication between two humans or a human and a machine. */
|
|
1775
1643
|
interface Message {
|
|
@@ -3106,6 +2974,52 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
|
3106
2974
|
}
|
|
3107
2975
|
type LinkEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.LinkSchema>;
|
|
3108
2976
|
}
|
|
2977
|
+
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
2978
|
+
interface FeedItemTarget {
|
|
2979
|
+
'personId'?: string | undefined | null;
|
|
2980
|
+
'personCasualName'?: string | undefined | null;
|
|
2981
|
+
'personAvatar'?: SpruceSchema.ImageFieldValue | undefined | null;
|
|
2982
|
+
'skillId'?: string | undefined | null;
|
|
2983
|
+
'skillName'?: string | undefined | null;
|
|
2984
|
+
}
|
|
2985
|
+
interface FeedItemTargetSchema extends SpruceSchema.Schema {
|
|
2986
|
+
id: 'feedItemTarget';
|
|
2987
|
+
version: 'v2020_07_22';
|
|
2988
|
+
namespace: 'Spruce';
|
|
2989
|
+
name: '';
|
|
2990
|
+
moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas';
|
|
2991
|
+
fields: {
|
|
2992
|
+
/** . */
|
|
2993
|
+
'personId': {
|
|
2994
|
+
type: 'id';
|
|
2995
|
+
options: undefined;
|
|
2996
|
+
};
|
|
2997
|
+
/** . */
|
|
2998
|
+
'personCasualName': {
|
|
2999
|
+
type: 'text';
|
|
3000
|
+
options: undefined;
|
|
3001
|
+
};
|
|
3002
|
+
/** . */
|
|
3003
|
+
'personAvatar': {
|
|
3004
|
+
type: 'image';
|
|
3005
|
+
options: {
|
|
3006
|
+
requiredSizes: ["*"];
|
|
3007
|
+
};
|
|
3008
|
+
};
|
|
3009
|
+
/** . */
|
|
3010
|
+
'skillId': {
|
|
3011
|
+
type: 'id';
|
|
3012
|
+
options: undefined;
|
|
3013
|
+
};
|
|
3014
|
+
/** . */
|
|
3015
|
+
'skillName': {
|
|
3016
|
+
type: 'text';
|
|
3017
|
+
options: undefined;
|
|
3018
|
+
};
|
|
3019
|
+
};
|
|
3020
|
+
}
|
|
3021
|
+
type FeedItemTargetEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.FeedItemTargetSchema>;
|
|
3022
|
+
}
|
|
3109
3023
|
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
3110
3024
|
interface Choice {
|
|
3111
3025
|
'value': string;
|
|
@@ -3134,16 +3048,146 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
|
3134
3048
|
}
|
|
3135
3049
|
type ChoiceEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.ChoiceSchema>;
|
|
3136
3050
|
}
|
|
3051
|
+
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
3052
|
+
interface SendMessage {
|
|
3053
|
+
/** . An arbitrary id that can be used to track this message when being sent and not yet assigned an Id. */
|
|
3054
|
+
'trackingId'?: string | undefined | null;
|
|
3055
|
+
'dateSent'?: number | undefined | null;
|
|
3056
|
+
'target': SpruceSchemas.Spruce.v2020_07_22.MessageTarget;
|
|
3057
|
+
'errors'?: string[] | undefined | null;
|
|
3058
|
+
'classification': ("auth" | "transactional" | "promotional" | "incoming");
|
|
3059
|
+
'status'?: ("pending" | "processing" | "sent" | "failed" | "ignored") | undefined | null;
|
|
3060
|
+
'body': string;
|
|
3061
|
+
'context'?: (Record<string, any>) | undefined | null;
|
|
3062
|
+
'topicId'?: string | undefined | null;
|
|
3063
|
+
'links'?: SpruceSchemas.Spruce.v2020_07_22.Link[] | undefined | null;
|
|
3064
|
+
'choices'?: SpruceSchemas.Spruce.v2020_07_22.Choice[] | undefined | null;
|
|
3065
|
+
}
|
|
3066
|
+
interface SendMessageSchema extends SpruceSchema.Schema {
|
|
3067
|
+
id: 'sendMessage';
|
|
3068
|
+
version: 'v2020_07_22';
|
|
3069
|
+
namespace: 'Spruce';
|
|
3070
|
+
name: '';
|
|
3071
|
+
moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas';
|
|
3072
|
+
fields: {
|
|
3073
|
+
/** . An arbitrary id that can be used to track this message when being sent and not yet assigned an Id. */
|
|
3074
|
+
'trackingId': {
|
|
3075
|
+
type: 'id';
|
|
3076
|
+
hint: 'An arbitrary id that can be used to track this message when being sent and not yet assigned an Id.';
|
|
3077
|
+
options: undefined;
|
|
3078
|
+
};
|
|
3079
|
+
/** . */
|
|
3080
|
+
'dateSent': {
|
|
3081
|
+
type: 'number';
|
|
3082
|
+
options: undefined;
|
|
3083
|
+
};
|
|
3084
|
+
/** . */
|
|
3085
|
+
'target': {
|
|
3086
|
+
type: 'schema';
|
|
3087
|
+
isRequired: true;
|
|
3088
|
+
options: {
|
|
3089
|
+
schema: SpruceSchemas.Spruce.v2020_07_22.MessageTargetSchema;
|
|
3090
|
+
};
|
|
3091
|
+
};
|
|
3092
|
+
/** . */
|
|
3093
|
+
'errors': {
|
|
3094
|
+
type: 'text';
|
|
3095
|
+
isPrivate: true;
|
|
3096
|
+
isArray: true;
|
|
3097
|
+
options: undefined;
|
|
3098
|
+
};
|
|
3099
|
+
/** . */
|
|
3100
|
+
'classification': {
|
|
3101
|
+
type: 'select';
|
|
3102
|
+
isRequired: true;
|
|
3103
|
+
options: {
|
|
3104
|
+
choices: [{
|
|
3105
|
+
"value": "auth";
|
|
3106
|
+
"label": "Auth";
|
|
3107
|
+
}, {
|
|
3108
|
+
"value": "transactional";
|
|
3109
|
+
"label": "transactional";
|
|
3110
|
+
}, {
|
|
3111
|
+
"value": "promotional";
|
|
3112
|
+
"label": "Promotional";
|
|
3113
|
+
}, {
|
|
3114
|
+
"value": "incoming";
|
|
3115
|
+
"label": "incoming";
|
|
3116
|
+
}];
|
|
3117
|
+
};
|
|
3118
|
+
};
|
|
3119
|
+
/** . */
|
|
3120
|
+
'status': {
|
|
3121
|
+
type: 'select';
|
|
3122
|
+
isPrivate: true;
|
|
3123
|
+
defaultValue: "pending";
|
|
3124
|
+
options: {
|
|
3125
|
+
choices: [{
|
|
3126
|
+
"value": "pending";
|
|
3127
|
+
"label": "Pending";
|
|
3128
|
+
}, {
|
|
3129
|
+
"value": "processing";
|
|
3130
|
+
"label": "Processing";
|
|
3131
|
+
}, {
|
|
3132
|
+
"value": "sent";
|
|
3133
|
+
"label": "Sent";
|
|
3134
|
+
}, {
|
|
3135
|
+
"value": "failed";
|
|
3136
|
+
"label": "Failed";
|
|
3137
|
+
}, {
|
|
3138
|
+
"value": "ignored";
|
|
3139
|
+
"label": "Ignored";
|
|
3140
|
+
}];
|
|
3141
|
+
};
|
|
3142
|
+
};
|
|
3143
|
+
/** . */
|
|
3144
|
+
'body': {
|
|
3145
|
+
type: 'text';
|
|
3146
|
+
isRequired: true;
|
|
3147
|
+
options: undefined;
|
|
3148
|
+
};
|
|
3149
|
+
/** . */
|
|
3150
|
+
'context': {
|
|
3151
|
+
type: 'raw';
|
|
3152
|
+
isPrivate: true;
|
|
3153
|
+
options: {
|
|
3154
|
+
valueType: `Record<string, any>`;
|
|
3155
|
+
};
|
|
3156
|
+
};
|
|
3157
|
+
/** . */
|
|
3158
|
+
'topicId': {
|
|
3159
|
+
type: 'id';
|
|
3160
|
+
options: undefined;
|
|
3161
|
+
};
|
|
3162
|
+
/** . */
|
|
3163
|
+
'links': {
|
|
3164
|
+
type: 'schema';
|
|
3165
|
+
isArray: true;
|
|
3166
|
+
minArrayLength: 0;
|
|
3167
|
+
options: {
|
|
3168
|
+
schema: SpruceSchemas.Spruce.v2020_07_22.LinkSchema;
|
|
3169
|
+
};
|
|
3170
|
+
};
|
|
3171
|
+
/** . */
|
|
3172
|
+
'choices': {
|
|
3173
|
+
type: 'schema';
|
|
3174
|
+
isArray: true;
|
|
3175
|
+
options: {
|
|
3176
|
+
schema: SpruceSchemas.Spruce.v2020_07_22.ChoiceSchema;
|
|
3177
|
+
};
|
|
3178
|
+
};
|
|
3179
|
+
};
|
|
3180
|
+
}
|
|
3181
|
+
type SendMessageEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.SendMessageSchema>;
|
|
3182
|
+
}
|
|
3137
3183
|
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
3138
3184
|
interface FeedItem {
|
|
3139
3185
|
'id': string;
|
|
3140
|
-
'isMe'?: boolean | undefined | null;
|
|
3141
3186
|
'message': string;
|
|
3142
3187
|
'dateCreated': SpruceSchema.DateTimeFieldValue;
|
|
3143
3188
|
'note'?: string | undefined | null;
|
|
3144
|
-
'
|
|
3145
|
-
'
|
|
3146
|
-
'fromCasualName': string;
|
|
3189
|
+
'source': SpruceSchemas.Spruce.v2020_07_22.FeedItemTarget;
|
|
3190
|
+
'target': SpruceSchemas.Spruce.v2020_07_22.FeedItemTarget;
|
|
3147
3191
|
'avatar'?: SpruceSchema.ImageFieldValue | undefined | null;
|
|
3148
3192
|
'choices'?: SpruceSchemas.Spruce.v2020_07_22.Choice[] | undefined | null;
|
|
3149
3193
|
'links'?: SpruceSchemas.Spruce.v2020_07_22.Link[] | undefined | null;
|
|
@@ -3162,11 +3206,6 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
|
3162
3206
|
options: undefined;
|
|
3163
3207
|
};
|
|
3164
3208
|
/** . */
|
|
3165
|
-
'isMe': {
|
|
3166
|
-
type: 'boolean';
|
|
3167
|
-
options: undefined;
|
|
3168
|
-
};
|
|
3169
|
-
/** . */
|
|
3170
3209
|
'message': {
|
|
3171
3210
|
type: 'text';
|
|
3172
3211
|
isRequired: true;
|
|
@@ -3184,22 +3223,20 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
|
3184
3223
|
options: undefined;
|
|
3185
3224
|
};
|
|
3186
3225
|
/** . */
|
|
3187
|
-
'isSprucebot': {
|
|
3188
|
-
type: 'boolean';
|
|
3189
|
-
options: undefined;
|
|
3190
|
-
};
|
|
3191
|
-
/** . */
|
|
3192
3226
|
'source': {
|
|
3193
|
-
type: '
|
|
3227
|
+
type: 'schema';
|
|
3228
|
+
isRequired: true;
|
|
3194
3229
|
options: {
|
|
3195
|
-
|
|
3230
|
+
schema: SpruceSchemas.Spruce.v2020_07_22.FeedItemTargetSchema;
|
|
3196
3231
|
};
|
|
3197
3232
|
};
|
|
3198
3233
|
/** . */
|
|
3199
|
-
'
|
|
3200
|
-
type: '
|
|
3234
|
+
'target': {
|
|
3235
|
+
type: 'schema';
|
|
3201
3236
|
isRequired: true;
|
|
3202
|
-
options:
|
|
3237
|
+
options: {
|
|
3238
|
+
schema: SpruceSchemas.Spruce.v2020_07_22.FeedItemTargetSchema;
|
|
3239
|
+
};
|
|
3203
3240
|
};
|
|
3204
3241
|
/** . */
|
|
3205
3242
|
'avatar': {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SchemaRegistry } from '@sprucelabs/schema';
|
|
2
|
+
import feedItemTargetSchema_v2020_07_22 from './feedItemTarget.schema.js';
|
|
2
3
|
import choiceSchema_v2020_07_22 from './choice.schema.js';
|
|
3
4
|
import linkSchema_v2020_07_22 from './link.schema.js';
|
|
4
5
|
const feedItemSchema = {
|
|
@@ -15,11 +16,6 @@ const feedItemSchema = {
|
|
|
15
16
|
options: undefined
|
|
16
17
|
},
|
|
17
18
|
/** . */
|
|
18
|
-
'isMe': {
|
|
19
|
-
type: 'boolean',
|
|
20
|
-
options: undefined
|
|
21
|
-
},
|
|
22
|
-
/** . */
|
|
23
19
|
'message': {
|
|
24
20
|
type: 'text',
|
|
25
21
|
isRequired: true,
|
|
@@ -37,20 +33,16 @@ const feedItemSchema = {
|
|
|
37
33
|
options: undefined
|
|
38
34
|
},
|
|
39
35
|
/** . */
|
|
40
|
-
'isSprucebot': {
|
|
41
|
-
type: 'boolean',
|
|
42
|
-
options: undefined
|
|
43
|
-
},
|
|
44
|
-
/** . */
|
|
45
36
|
'source': {
|
|
46
|
-
type: '
|
|
47
|
-
|
|
37
|
+
type: 'schema',
|
|
38
|
+
isRequired: true,
|
|
39
|
+
options: { schema: feedItemTargetSchema_v2020_07_22, }
|
|
48
40
|
},
|
|
49
41
|
/** . */
|
|
50
|
-
'
|
|
51
|
-
type: '
|
|
42
|
+
'target': {
|
|
43
|
+
type: 'schema',
|
|
52
44
|
isRequired: true,
|
|
53
|
-
options:
|
|
45
|
+
options: { schema: feedItemTargetSchema_v2020_07_22, }
|
|
54
46
|
},
|
|
55
47
|
/** . */
|
|
56
48
|
'avatar': {
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { SchemaRegistry } from '@sprucelabs/schema';
|
|
2
|
+
const feedItemTargetSchema = {
|
|
3
|
+
id: 'feedItemTarget',
|
|
4
|
+
version: 'v2020_07_22',
|
|
5
|
+
namespace: 'Spruce',
|
|
6
|
+
name: '',
|
|
7
|
+
moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas',
|
|
8
|
+
fields: {
|
|
9
|
+
/** . */
|
|
10
|
+
'personId': {
|
|
11
|
+
type: 'id',
|
|
12
|
+
options: undefined
|
|
13
|
+
},
|
|
14
|
+
/** . */
|
|
15
|
+
'personCasualName': {
|
|
16
|
+
type: 'text',
|
|
17
|
+
options: undefined
|
|
18
|
+
},
|
|
19
|
+
/** . */
|
|
20
|
+
'personAvatar': {
|
|
21
|
+
type: 'image',
|
|
22
|
+
options: { requiredSizes: ["*"], }
|
|
23
|
+
},
|
|
24
|
+
/** . */
|
|
25
|
+
'skillId': {
|
|
26
|
+
type: 'id',
|
|
27
|
+
options: undefined
|
|
28
|
+
},
|
|
29
|
+
/** . */
|
|
30
|
+
'skillName': {
|
|
31
|
+
type: 'text',
|
|
32
|
+
options: undefined
|
|
33
|
+
},
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
SchemaRegistry.getInstance().trackSchema(feedItemTargetSchema);
|
|
37
|
+
export default feedItemTargetSchema;
|
|
@@ -14,9 +14,6 @@ declare const _default: {
|
|
|
14
14
|
type: "id";
|
|
15
15
|
isRequired: true;
|
|
16
16
|
};
|
|
17
|
-
isMe: {
|
|
18
|
-
type: "boolean";
|
|
19
|
-
};
|
|
20
17
|
message: {
|
|
21
18
|
type: "text";
|
|
22
19
|
isRequired: true;
|
|
@@ -28,18 +25,63 @@ declare const _default: {
|
|
|
28
25
|
note: {
|
|
29
26
|
type: "text";
|
|
30
27
|
};
|
|
31
|
-
isSprucebot: {
|
|
32
|
-
type: "boolean";
|
|
33
|
-
};
|
|
34
28
|
source: {
|
|
35
|
-
type: "
|
|
29
|
+
type: "schema";
|
|
30
|
+
isRequired: true;
|
|
36
31
|
options: {
|
|
37
|
-
|
|
32
|
+
schema: {
|
|
33
|
+
id: string;
|
|
34
|
+
fields: {
|
|
35
|
+
personId: {
|
|
36
|
+
type: "id";
|
|
37
|
+
};
|
|
38
|
+
personCasualName: {
|
|
39
|
+
type: "text";
|
|
40
|
+
};
|
|
41
|
+
personAvatar: {
|
|
42
|
+
type: "image";
|
|
43
|
+
options: {
|
|
44
|
+
requiredSizes: "*"[];
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
skillId: {
|
|
48
|
+
type: "id";
|
|
49
|
+
};
|
|
50
|
+
skillName: {
|
|
51
|
+
type: "text";
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
};
|
|
38
55
|
};
|
|
39
56
|
};
|
|
40
|
-
|
|
41
|
-
type: "
|
|
57
|
+
target: {
|
|
58
|
+
type: "schema";
|
|
42
59
|
isRequired: true;
|
|
60
|
+
options: {
|
|
61
|
+
schema: {
|
|
62
|
+
id: string;
|
|
63
|
+
fields: {
|
|
64
|
+
personId: {
|
|
65
|
+
type: "id";
|
|
66
|
+
};
|
|
67
|
+
personCasualName: {
|
|
68
|
+
type: "text";
|
|
69
|
+
};
|
|
70
|
+
personAvatar: {
|
|
71
|
+
type: "image";
|
|
72
|
+
options: {
|
|
73
|
+
requiredSizes: "*"[];
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
skillId: {
|
|
77
|
+
type: "id";
|
|
78
|
+
};
|
|
79
|
+
skillName: {
|
|
80
|
+
type: "text";
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
};
|
|
43
85
|
};
|
|
44
86
|
avatar: {
|
|
45
87
|
type: "image";
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import { buildSchema } from '@sprucelabs/schema';
|
|
2
2
|
import choiceBuilder from './choice.builder.js';
|
|
3
3
|
import linkBuilder from './link.builder.js';
|
|
4
|
+
const feedItemTargetSchema = buildSchema({
|
|
5
|
+
id: 'feedItemTarget',
|
|
6
|
+
fields: {
|
|
7
|
+
personId: { type: 'id' },
|
|
8
|
+
personCasualName: { type: 'text' },
|
|
9
|
+
personAvatar: { type: 'image', options: { requiredSizes: ['*'] } },
|
|
10
|
+
skillId: { type: 'id' },
|
|
11
|
+
skillName: { type: 'text' },
|
|
12
|
+
},
|
|
13
|
+
});
|
|
4
14
|
const feedItemSchema = buildSchema({
|
|
5
15
|
id: 'feedItem',
|
|
6
16
|
fields: {
|
|
@@ -8,9 +18,6 @@ const feedItemSchema = buildSchema({
|
|
|
8
18
|
type: 'id',
|
|
9
19
|
isRequired: true,
|
|
10
20
|
},
|
|
11
|
-
isMe: {
|
|
12
|
-
type: 'boolean',
|
|
13
|
-
},
|
|
14
21
|
message: {
|
|
15
22
|
type: 'text',
|
|
16
23
|
isRequired: true,
|
|
@@ -22,18 +29,19 @@ const feedItemSchema = buildSchema({
|
|
|
22
29
|
note: {
|
|
23
30
|
type: 'text',
|
|
24
31
|
},
|
|
25
|
-
isSprucebot: {
|
|
26
|
-
type: 'boolean',
|
|
27
|
-
},
|
|
28
32
|
source: {
|
|
29
|
-
type: '
|
|
33
|
+
type: 'schema',
|
|
34
|
+
isRequired: true,
|
|
30
35
|
options: {
|
|
31
|
-
|
|
36
|
+
schema: feedItemTargetSchema,
|
|
32
37
|
},
|
|
33
38
|
},
|
|
34
|
-
|
|
35
|
-
type: '
|
|
39
|
+
target: {
|
|
40
|
+
type: 'schema',
|
|
36
41
|
isRequired: true,
|
|
42
|
+
options: {
|
|
43
|
+
schema: feedItemTargetSchema,
|
|
44
|
+
},
|
|
37
45
|
},
|
|
38
46
|
avatar: {
|
|
39
47
|
type: 'image',
|
|
@@ -14,9 +14,6 @@ declare const _default: {
|
|
|
14
14
|
type: "id";
|
|
15
15
|
isRequired: true;
|
|
16
16
|
};
|
|
17
|
-
isMe: {
|
|
18
|
-
type: "boolean";
|
|
19
|
-
};
|
|
20
17
|
message: {
|
|
21
18
|
type: "text";
|
|
22
19
|
isRequired: true;
|
|
@@ -28,18 +25,63 @@ declare const _default: {
|
|
|
28
25
|
note: {
|
|
29
26
|
type: "text";
|
|
30
27
|
};
|
|
31
|
-
isSprucebot: {
|
|
32
|
-
type: "boolean";
|
|
33
|
-
};
|
|
34
28
|
source: {
|
|
35
|
-
type: "
|
|
29
|
+
type: "schema";
|
|
30
|
+
isRequired: true;
|
|
36
31
|
options: {
|
|
37
|
-
|
|
32
|
+
schema: {
|
|
33
|
+
id: string;
|
|
34
|
+
fields: {
|
|
35
|
+
personId: {
|
|
36
|
+
type: "id";
|
|
37
|
+
};
|
|
38
|
+
personCasualName: {
|
|
39
|
+
type: "text";
|
|
40
|
+
};
|
|
41
|
+
personAvatar: {
|
|
42
|
+
type: "image";
|
|
43
|
+
options: {
|
|
44
|
+
requiredSizes: "*"[];
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
skillId: {
|
|
48
|
+
type: "id";
|
|
49
|
+
};
|
|
50
|
+
skillName: {
|
|
51
|
+
type: "text";
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
};
|
|
38
55
|
};
|
|
39
56
|
};
|
|
40
|
-
|
|
41
|
-
type: "
|
|
57
|
+
target: {
|
|
58
|
+
type: "schema";
|
|
42
59
|
isRequired: true;
|
|
60
|
+
options: {
|
|
61
|
+
schema: {
|
|
62
|
+
id: string;
|
|
63
|
+
fields: {
|
|
64
|
+
personId: {
|
|
65
|
+
type: "id";
|
|
66
|
+
};
|
|
67
|
+
personCasualName: {
|
|
68
|
+
type: "text";
|
|
69
|
+
};
|
|
70
|
+
personAvatar: {
|
|
71
|
+
type: "image";
|
|
72
|
+
options: {
|
|
73
|
+
requiredSizes: "*"[];
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
skillId: {
|
|
77
|
+
type: "id";
|
|
78
|
+
};
|
|
79
|
+
skillName: {
|
|
80
|
+
type: "text";
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
};
|
|
43
85
|
};
|
|
44
86
|
avatar: {
|
|
45
87
|
type: "image";
|
|
@@ -6,6 +6,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const schema_1 = require("@sprucelabs/schema");
|
|
7
7
|
const choice_builder_1 = __importDefault(require("./choice.builder"));
|
|
8
8
|
const link_builder_1 = __importDefault(require("./link.builder"));
|
|
9
|
+
const feedItemTargetSchema = (0, schema_1.buildSchema)({
|
|
10
|
+
id: 'feedItemTarget',
|
|
11
|
+
fields: {
|
|
12
|
+
personId: { type: 'id' },
|
|
13
|
+
personCasualName: { type: 'text' },
|
|
14
|
+
personAvatar: { type: 'image', options: { requiredSizes: ['*'] } },
|
|
15
|
+
skillId: { type: 'id' },
|
|
16
|
+
skillName: { type: 'text' },
|
|
17
|
+
},
|
|
18
|
+
});
|
|
9
19
|
const feedItemSchema = (0, schema_1.buildSchema)({
|
|
10
20
|
id: 'feedItem',
|
|
11
21
|
fields: {
|
|
@@ -13,9 +23,6 @@ const feedItemSchema = (0, schema_1.buildSchema)({
|
|
|
13
23
|
type: 'id',
|
|
14
24
|
isRequired: true,
|
|
15
25
|
},
|
|
16
|
-
isMe: {
|
|
17
|
-
type: 'boolean',
|
|
18
|
-
},
|
|
19
26
|
message: {
|
|
20
27
|
type: 'text',
|
|
21
28
|
isRequired: true,
|
|
@@ -27,18 +34,19 @@ const feedItemSchema = (0, schema_1.buildSchema)({
|
|
|
27
34
|
note: {
|
|
28
35
|
type: 'text',
|
|
29
36
|
},
|
|
30
|
-
isSprucebot: {
|
|
31
|
-
type: 'boolean',
|
|
32
|
-
},
|
|
33
37
|
source: {
|
|
34
|
-
type: '
|
|
38
|
+
type: 'schema',
|
|
39
|
+
isRequired: true,
|
|
35
40
|
options: {
|
|
36
|
-
|
|
41
|
+
schema: feedItemTargetSchema,
|
|
37
42
|
},
|
|
38
43
|
},
|
|
39
|
-
|
|
40
|
-
type: '
|
|
44
|
+
target: {
|
|
45
|
+
type: 'schema',
|
|
41
46
|
isRequired: true,
|
|
47
|
+
options: {
|
|
48
|
+
schema: feedItemTargetSchema,
|
|
49
|
+
},
|
|
42
50
|
},
|
|
43
51
|
avatar: {
|
|
44
52
|
type: 'image',
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "
|
|
6
|
+
"version": "37.0.0",
|
|
7
7
|
"files": [
|
|
8
8
|
"build/**/*",
|
|
9
9
|
"tsconfig.json"
|
|
@@ -64,15 +64,15 @@
|
|
|
64
64
|
"watch.rebuild": "yarn clean.all && yarn && yarn watch.build.dev"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@sprucelabs/schema": "^28.5.
|
|
67
|
+
"@sprucelabs/schema": "^28.5.140"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@sprucelabs/esm-postbuild": "^
|
|
71
|
-
"@sprucelabs/jest-json-reporter": "^
|
|
72
|
-
"@sprucelabs/resolve-path-aliases": "^1.1.
|
|
70
|
+
"@sprucelabs/esm-postbuild": "^3.0.0",
|
|
71
|
+
"@sprucelabs/jest-json-reporter": "^7.0.0",
|
|
72
|
+
"@sprucelabs/resolve-path-aliases": "^1.1.184",
|
|
73
73
|
"@sprucelabs/semantic-release": "^4.0.8",
|
|
74
|
-
"@sprucelabs/test": "^7.7.
|
|
75
|
-
"@sprucelabs/test-utils": "^3.4.
|
|
74
|
+
"@sprucelabs/test": "^7.7.423",
|
|
75
|
+
"@sprucelabs/test-utils": "^3.4.12",
|
|
76
76
|
"@types/node": "^18.14.6",
|
|
77
77
|
"chokidar-cli": "^3.0.0",
|
|
78
78
|
"concurrently": "^7.6.0",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"prettier": "^2.8.4",
|
|
85
85
|
"ts-node": "^10.9.1",
|
|
86
86
|
"tsc-watch": "^6.0.0",
|
|
87
|
-
"tsconfig-paths": "^
|
|
87
|
+
"tsconfig-paths": "^4.1.2",
|
|
88
88
|
"typescript": "^4.9.5",
|
|
89
89
|
"yarn-upgrade-all": "^0.7.2"
|
|
90
90
|
},
|