@snugdesk/core 0.2.23 → 0.2.24
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/fesm2022/snugdesk-core.mjs +226 -1
- package/fesm2022/snugdesk-core.mjs.map +1 -1
- package/index.d.ts +201 -9
- package/package.json +1 -1
|
@@ -1176,6 +1176,21 @@ var InteractionRouteLogic;
|
|
|
1176
1176
|
InteractionRouteLogic["PARALLEL"] = "PARALLEL";
|
|
1177
1177
|
})(InteractionRouteLogic || (InteractionRouteLogic = {}));
|
|
1178
1178
|
|
|
1179
|
+
var TenantComplianceDocumentStatus;
|
|
1180
|
+
(function (TenantComplianceDocumentStatus) {
|
|
1181
|
+
TenantComplianceDocumentStatus["ACTIVE"] = "ACTIVE";
|
|
1182
|
+
TenantComplianceDocumentStatus["EXPIRED"] = "EXPIRED";
|
|
1183
|
+
TenantComplianceDocumentStatus["REVOKED"] = "REVOKED";
|
|
1184
|
+
TenantComplianceDocumentStatus["PENDING_VERIFICATION"] = "PENDING_VERIFICATION";
|
|
1185
|
+
})(TenantComplianceDocumentStatus || (TenantComplianceDocumentStatus = {}));
|
|
1186
|
+
var TenantComplianceDocumentType;
|
|
1187
|
+
(function (TenantComplianceDocumentType) {
|
|
1188
|
+
TenantComplianceDocumentType["PAN_CARD"] = "PAN_CARD";
|
|
1189
|
+
TenantComplianceDocumentType["GST_CERTIFICATE"] = "GST_CERTIFICATE";
|
|
1190
|
+
TenantComplianceDocumentType["TDS_REGISTRATION"] = "TDS_REGISTRATION";
|
|
1191
|
+
TenantComplianceDocumentType["GOVT_CERTIFICATE"] = "GOVT_CERTIFICATE";
|
|
1192
|
+
TenantComplianceDocumentType["OTHER"] = "OTHER";
|
|
1193
|
+
})(TenantComplianceDocumentType || (TenantComplianceDocumentType = {}));
|
|
1179
1194
|
var TenantSSOConfigurationProtocol;
|
|
1180
1195
|
(function (TenantSSOConfigurationProtocol) {
|
|
1181
1196
|
TenantSSOConfigurationProtocol["SAML"] = "SAML";
|
|
@@ -3157,6 +3172,117 @@ const FIELDS_TENANT = `
|
|
|
3157
3172
|
createdAt
|
|
3158
3173
|
updatedAt
|
|
3159
3174
|
deletedAt
|
|
3175
|
+
updatedByUserId
|
|
3176
|
+
updatedByUserSessionId
|
|
3177
|
+
`;
|
|
3178
|
+
const FIELDS_TENANT_MINIMAL = `
|
|
3179
|
+
id
|
|
3180
|
+
externalId
|
|
3181
|
+
tenantDomain
|
|
3182
|
+
organizationName
|
|
3183
|
+
websiteURL
|
|
3184
|
+
image {
|
|
3185
|
+
location
|
|
3186
|
+
}
|
|
3187
|
+
preferences {
|
|
3188
|
+
timezoneName
|
|
3189
|
+
language {
|
|
3190
|
+
code
|
|
3191
|
+
nameEn
|
|
3192
|
+
nameLocal
|
|
3193
|
+
}
|
|
3194
|
+
allowUserToChangePreferences
|
|
3195
|
+
}
|
|
3196
|
+
activatedAt
|
|
3197
|
+
blockedAt
|
|
3198
|
+
createdAt
|
|
3199
|
+
updatedAt
|
|
3200
|
+
deletedAt
|
|
3201
|
+
updatedByUserId
|
|
3202
|
+
updatedByUserSessionId
|
|
3203
|
+
`;
|
|
3204
|
+
const FIELDS_TENANT_EXPANDED = `
|
|
3205
|
+
id
|
|
3206
|
+
externalId
|
|
3207
|
+
tenantDomain
|
|
3208
|
+
organizationName
|
|
3209
|
+
websiteURL
|
|
3210
|
+
image {
|
|
3211
|
+
key
|
|
3212
|
+
bucket
|
|
3213
|
+
location
|
|
3214
|
+
}
|
|
3215
|
+
billingInformation {
|
|
3216
|
+
companyName
|
|
3217
|
+
address
|
|
3218
|
+
state
|
|
3219
|
+
city
|
|
3220
|
+
postalCode
|
|
3221
|
+
companyIdentificationNumber
|
|
3222
|
+
taxIdentificationNumber
|
|
3223
|
+
}
|
|
3224
|
+
contactInformation {
|
|
3225
|
+
name
|
|
3226
|
+
email
|
|
3227
|
+
address
|
|
3228
|
+
state
|
|
3229
|
+
city
|
|
3230
|
+
postalCode
|
|
3231
|
+
}
|
|
3232
|
+
preferences {
|
|
3233
|
+
timezoneName
|
|
3234
|
+
language {
|
|
3235
|
+
code
|
|
3236
|
+
nameEn
|
|
3237
|
+
nameLocal
|
|
3238
|
+
}
|
|
3239
|
+
allowUserToChangePreferences
|
|
3240
|
+
}
|
|
3241
|
+
ssoConfiguration {
|
|
3242
|
+
provider
|
|
3243
|
+
protocol
|
|
3244
|
+
displayName
|
|
3245
|
+
configuration
|
|
3246
|
+
isEnabled
|
|
3247
|
+
isDefaultLoginMode
|
|
3248
|
+
}
|
|
3249
|
+
security {
|
|
3250
|
+
domainValidationTokenExpiry
|
|
3251
|
+
userValidationTokenExpiry
|
|
3252
|
+
secretTokenExpiry
|
|
3253
|
+
sessionTokenExpiry
|
|
3254
|
+
sessionIdleTimeout
|
|
3255
|
+
}
|
|
3256
|
+
activatedAt
|
|
3257
|
+
blockedAt
|
|
3258
|
+
createdAt
|
|
3259
|
+
updatedAt
|
|
3260
|
+
deletedAt
|
|
3261
|
+
updatedByUserId
|
|
3262
|
+
updatedByUserSessionId
|
|
3263
|
+
`;
|
|
3264
|
+
const FIELDS_TENANT_COMPLIANCE_DOCUMENT = `
|
|
3265
|
+
id
|
|
3266
|
+
tenantId
|
|
3267
|
+
documentName
|
|
3268
|
+
documentType
|
|
3269
|
+
documentNumber
|
|
3270
|
+
legalEntityName
|
|
3271
|
+
issuedBy
|
|
3272
|
+
issueDate
|
|
3273
|
+
expiryDate
|
|
3274
|
+
status
|
|
3275
|
+
notes
|
|
3276
|
+
file {
|
|
3277
|
+
key
|
|
3278
|
+
bucket
|
|
3279
|
+
location
|
|
3280
|
+
}
|
|
3281
|
+
createdAt
|
|
3282
|
+
updatedAt
|
|
3283
|
+
deletedAt
|
|
3284
|
+
updatedByUserId
|
|
3285
|
+
updatedByUserSessionId
|
|
3160
3286
|
`;
|
|
3161
3287
|
class TenantService {
|
|
3162
3288
|
appSyncService;
|
|
@@ -3173,6 +3299,105 @@ class TenantService {
|
|
|
3173
3299
|
const response = await this.appSyncService.query(statement, gqlAPIServiceArguments);
|
|
3174
3300
|
return response.data?.getTenant;
|
|
3175
3301
|
}
|
|
3302
|
+
async GetTenantExpanded(id) {
|
|
3303
|
+
const statement = `query GetTenant($id: ID!) {
|
|
3304
|
+
getTenant(id: $id) {
|
|
3305
|
+
${FIELDS_TENANT_EXPANDED}
|
|
3306
|
+
}
|
|
3307
|
+
}`;
|
|
3308
|
+
const gqlAPIServiceArguments = { id };
|
|
3309
|
+
const response = await this.appSyncService.query(statement, gqlAPIServiceArguments);
|
|
3310
|
+
return response.data?.getTenant;
|
|
3311
|
+
}
|
|
3312
|
+
async CreateTenant(input, condition) {
|
|
3313
|
+
const statement = `mutation CreateTenant($input: CreateTenantInput!, $condition: ModelTenantConditionInput) {
|
|
3314
|
+
createTenant(input: $input, condition: $condition) {
|
|
3315
|
+
${FIELDS_TENANT_MINIMAL}
|
|
3316
|
+
}
|
|
3317
|
+
}`;
|
|
3318
|
+
const gqlAPIServiceArguments = { input };
|
|
3319
|
+
if (condition) {
|
|
3320
|
+
gqlAPIServiceArguments.condition = condition;
|
|
3321
|
+
}
|
|
3322
|
+
const response = await this.appSyncService.query(statement, gqlAPIServiceArguments);
|
|
3323
|
+
return response.data.createTenant;
|
|
3324
|
+
}
|
|
3325
|
+
async UpdateTenant(input, condition) {
|
|
3326
|
+
const statement = `mutation UpdateTenant($input: UpdateTenantInput!, $condition: ModelTenantConditionInput) {
|
|
3327
|
+
updateTenant(input: $input, condition: $condition) {
|
|
3328
|
+
${FIELDS_TENANT_MINIMAL}
|
|
3329
|
+
}
|
|
3330
|
+
}`;
|
|
3331
|
+
const gqlAPIServiceArguments = { input };
|
|
3332
|
+
if (condition) {
|
|
3333
|
+
gqlAPIServiceArguments.condition = condition;
|
|
3334
|
+
}
|
|
3335
|
+
const response = await this.appSyncService.query(statement, gqlAPIServiceArguments);
|
|
3336
|
+
return response.data.updateTenant;
|
|
3337
|
+
}
|
|
3338
|
+
async CreateTenantComplianceDocument(input, condition) {
|
|
3339
|
+
const statement = `mutation CreateTenantComplianceDocument($input: CreateTenantComplianceDocumentInput!, $condition: ModelTenantComplianceDocumentConditionInput) {
|
|
3340
|
+
createTenantComplianceDocument(input: $input, condition: $condition) {
|
|
3341
|
+
${FIELDS_TENANT_COMPLIANCE_DOCUMENT}
|
|
3342
|
+
}
|
|
3343
|
+
}`;
|
|
3344
|
+
const gqlAPIServiceArguments = { input };
|
|
3345
|
+
if (condition) {
|
|
3346
|
+
gqlAPIServiceArguments.condition = condition;
|
|
3347
|
+
}
|
|
3348
|
+
const response = await this.appSyncService.query(statement, gqlAPIServiceArguments);
|
|
3349
|
+
return response.data.createTenantComplianceDocument;
|
|
3350
|
+
}
|
|
3351
|
+
async UpdateTenantComplianceDocument(input, condition) {
|
|
3352
|
+
const statement = `mutation UpdateTenantComplianceDocument($input: UpdateTenantComplianceDocumentInput!, $condition: ModelTenantComplianceDocumentConditionInput) {
|
|
3353
|
+
updateTenantComplianceDocument(input: $input, condition: $condition) {
|
|
3354
|
+
${FIELDS_TENANT_COMPLIANCE_DOCUMENT}
|
|
3355
|
+
}
|
|
3356
|
+
}`;
|
|
3357
|
+
const gqlAPIServiceArguments = { input };
|
|
3358
|
+
if (condition) {
|
|
3359
|
+
gqlAPIServiceArguments.condition = condition;
|
|
3360
|
+
}
|
|
3361
|
+
const response = await this.appSyncService.query(statement, gqlAPIServiceArguments);
|
|
3362
|
+
return response.data.updateTenantComplianceDocument;
|
|
3363
|
+
}
|
|
3364
|
+
async ListTenantComplianceDocumentsByTenantId(tenantId, updatedAt, sortDirection, filter, limit, nextToken) {
|
|
3365
|
+
const statement = `query ListTenantComplianceDocumentsByTenantId($tenantId: ID!, $updatedAt: ModelIntKeyConditionInput, $sortDirection: ModelSortDirection, $filter: ModelTenantComplianceDocumentFilterInput, $limit: Int, $nextToken: String) {
|
|
3366
|
+
listTenantComplianceDocumentsByTenantId(
|
|
3367
|
+
tenantId: $tenantId
|
|
3368
|
+
updatedAt: $updatedAt
|
|
3369
|
+
sortDirection: $sortDirection
|
|
3370
|
+
filter: $filter
|
|
3371
|
+
limit: $limit
|
|
3372
|
+
nextToken: $nextToken
|
|
3373
|
+
) {
|
|
3374
|
+
items {
|
|
3375
|
+
${FIELDS_TENANT_COMPLIANCE_DOCUMENT}
|
|
3376
|
+
}
|
|
3377
|
+
nextToken
|
|
3378
|
+
}
|
|
3379
|
+
}`;
|
|
3380
|
+
const gqlAPIServiceArguments = {
|
|
3381
|
+
tenantId,
|
|
3382
|
+
};
|
|
3383
|
+
if (updatedAt) {
|
|
3384
|
+
gqlAPIServiceArguments.updatedAt = updatedAt;
|
|
3385
|
+
}
|
|
3386
|
+
if (sortDirection) {
|
|
3387
|
+
gqlAPIServiceArguments.sortDirection = sortDirection;
|
|
3388
|
+
}
|
|
3389
|
+
if (filter) {
|
|
3390
|
+
gqlAPIServiceArguments.filter = filter;
|
|
3391
|
+
}
|
|
3392
|
+
if (limit) {
|
|
3393
|
+
gqlAPIServiceArguments.limit = limit;
|
|
3394
|
+
}
|
|
3395
|
+
if (nextToken) {
|
|
3396
|
+
gqlAPIServiceArguments.nextToken = nextToken;
|
|
3397
|
+
}
|
|
3398
|
+
const response = await this.appSyncService.query(statement, gqlAPIServiceArguments);
|
|
3399
|
+
return response.data.listTenantComplianceDocumentsByTenantId;
|
|
3400
|
+
}
|
|
3176
3401
|
OnTenantByIdListener(id) {
|
|
3177
3402
|
const statement = `subscription OnTenantById($id: ID!) {
|
|
3178
3403
|
OnTenantById(id: $id) {
|
|
@@ -3825,5 +4050,5 @@ class CustomValidators {
|
|
|
3825
4050
|
* Generated bundle index. Do not edit.
|
|
3826
4051
|
*/
|
|
3827
4052
|
|
|
3828
|
-
export { AMPLIFY_CONFIG, AppSyncHelperService, CleanDeep, CustomPipesModule, CustomValidators, DomainNamePipe, EncryptedStorageService, EntityConversationService, EntityService, ErrorComponent, FIELDS_ENTITY, FIELDS_ENTITY_CONVERSATION, FIELDS_ENTITY_CONVERSATION_EXPANDED, FIELDS_ENTITY_CONVERSATION_MINIMAL, FIELDS_ENTITY_EXPANDED, FIELDS_ENTITY_MINIMAL, FIELDS_ENTITY_TYPE, FIELDS_INTERACTION, FIELDS_INTERACTION_ATTENDEE, FIELDS_INTERACTION_ATTENDEE_EXPANDED, FIELDS_INTERACTION_ENDPOINT, FIELDS_INTERACTION_ENDPOINT_MINIMAL, FIELDS_INTERACTION_EXPANDED, FIELDS_INTERACTION_HOST, FIELDS_INTERACTION_INVITEE, FIELDS_INTERACTION_MESSAGE, FIELDS_INTERACTION_MESSAGE_ATTACHMENT, FIELDS_INTERACTION_MESSAGE_EXPANDED, FIELDS_INTERACTION_MINIMAL, FIELDS_INTERACTION_WIDGET, FIELDS_INTERACTION_WIDGET_USER_SETTING, FIELDS_TEAM, FIELDS_TEAM_MEMBER, FIELDS_TENANT, FIELDS_TICKET, FIELDS_TICKET_PRIORITY, FIELDS_TICKET_STATUS, FIELDS_TICKET_TYPE, FIELDS_USER, FIELDS_USER_SESSION, FooterComponent, FormatEpochTimestampPipe, InteractionChannel, InteractionContext, InteractionDirection, InteractionEndpointService, InteractionProvider, InteractionRouteLogic, InteractionService, InteractionStatus, InteractionWidgetService, LoaderComponent, ModelAttributeTypes, ModelSortDirection, OpenSearchHelperService, ProcessingStatus, S3HelperService, SafeHtmlPipe, SearchInnerFieldPipe, SearchPipe, SingularizePipe, SnugdeskAuthenticationService, SnugdeskCoreModule, SnugdeskIPRegistryService, StorageType, TeamService, TenantSSOConfigurationProtocol, TenantService, TicketService, UserService, UserSessionService, UserStatus, UserType, provideAmplifyConfig };
|
|
4053
|
+
export { AMPLIFY_CONFIG, AppSyncHelperService, CleanDeep, CustomPipesModule, CustomValidators, DomainNamePipe, EncryptedStorageService, EntityConversationService, EntityService, ErrorComponent, FIELDS_ENTITY, FIELDS_ENTITY_CONVERSATION, FIELDS_ENTITY_CONVERSATION_EXPANDED, FIELDS_ENTITY_CONVERSATION_MINIMAL, FIELDS_ENTITY_EXPANDED, FIELDS_ENTITY_MINIMAL, FIELDS_ENTITY_TYPE, FIELDS_INTERACTION, FIELDS_INTERACTION_ATTENDEE, FIELDS_INTERACTION_ATTENDEE_EXPANDED, FIELDS_INTERACTION_ENDPOINT, FIELDS_INTERACTION_ENDPOINT_MINIMAL, FIELDS_INTERACTION_EXPANDED, FIELDS_INTERACTION_HOST, FIELDS_INTERACTION_INVITEE, FIELDS_INTERACTION_MESSAGE, FIELDS_INTERACTION_MESSAGE_ATTACHMENT, FIELDS_INTERACTION_MESSAGE_EXPANDED, FIELDS_INTERACTION_MINIMAL, FIELDS_INTERACTION_WIDGET, FIELDS_INTERACTION_WIDGET_USER_SETTING, FIELDS_TEAM, FIELDS_TEAM_MEMBER, FIELDS_TENANT, FIELDS_TENANT_COMPLIANCE_DOCUMENT, FIELDS_TENANT_EXPANDED, FIELDS_TENANT_MINIMAL, FIELDS_TICKET, FIELDS_TICKET_PRIORITY, FIELDS_TICKET_STATUS, FIELDS_TICKET_TYPE, FIELDS_USER, FIELDS_USER_SESSION, FooterComponent, FormatEpochTimestampPipe, InteractionChannel, InteractionContext, InteractionDirection, InteractionEndpointService, InteractionProvider, InteractionRouteLogic, InteractionService, InteractionStatus, InteractionWidgetService, LoaderComponent, ModelAttributeTypes, ModelSortDirection, OpenSearchHelperService, ProcessingStatus, S3HelperService, SafeHtmlPipe, SearchInnerFieldPipe, SearchPipe, SingularizePipe, SnugdeskAuthenticationService, SnugdeskCoreModule, SnugdeskIPRegistryService, StorageType, TeamService, TenantComplianceDocumentStatus, TenantComplianceDocumentType, TenantSSOConfigurationProtocol, TenantService, TicketService, UserService, UserSessionService, UserStatus, UserType, provideAmplifyConfig };
|
|
3829
4054
|
//# sourceMappingURL=snugdesk-core.mjs.map
|