bx-rest 0.1.16 → 0.1.18

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.
@@ -2666,7 +2666,7 @@ class BXRestMapLists extends BaseMapServices {
2666
2666
  RSS_FILE_ACTIVE: itemLists.RSS_FILE_ACTIVE === 'Y',
2667
2667
  RSS_FILE_DAYS: this.toStr(itemLists.RSS_FILE_DAYS),
2668
2668
  RSS_FILE_LIMIT: this.toStr(itemLists.RSS_FILE_LIMIT),
2669
- RSS_TTL: Number(itemLists.RSS_TTL),
2669
+ RSS_TTL: this.toNum(itemLists.RSS_TTL),
2670
2670
  RSS_YANDEX_ACTIVE: itemLists.RSS_YANDEX_ACTIVE === 'Y',
2671
2671
  SECTIONS_NAME: this.toStr(itemLists.SECTIONS_NAME),
2672
2672
  SECTION_CHOOSER: this.toStr(itemLists.SECTION_CHOOSER),
@@ -2675,12 +2675,12 @@ class BXRestMapLists extends BaseMapServices {
2675
2675
  SECTION_PROPERTY: this.toStr(itemLists.SECTION_PROPERTY),
2676
2676
  SERVER_NAME: this.toStr(itemLists.SERVER_NAME),
2677
2677
  SOCNET_GROUP_ID: this.toStr(itemLists.SOCNET_GROUP_ID),
2678
- SORT: this.toNum(itemLists.SOCNET_GROUP_ID),
2678
+ SORT: this.toNum(itemLists.SORT),
2679
2679
  TIMESTAMP_X: new Date(itemLists.TIMESTAMP_X),
2680
- TMP_ID: this.toStr(itemLists.SOCNET_GROUP_ID),
2681
- VERSION: Number(itemLists.VERSION),
2680
+ TMP_ID: this.toStr(itemLists.TMP_ID),
2681
+ VERSION: this.toNum(itemLists.VERSION),
2682
2682
  WORKFLOW: itemLists.WORKFLOW === 'Y',
2683
- XML_ID: this.toStr(itemLists.SOCNET_GROUP_ID),
2683
+ XML_ID: this.toStr(itemLists.XML_ID),
2684
2684
  };
2685
2685
  }
2686
2686
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapLists, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
@@ -3120,12 +3120,41 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImpor
3120
3120
  }]
3121
3121
  }] });
3122
3122
 
3123
+ class BXRestNavvyOperationElapseditem {
3124
+ constructor(BXRestElapseditem, BXRestMapElapseditem) {
3125
+ this.BXRestElapseditem = BXRestElapseditem;
3126
+ this.BXRestMapElapseditem = BXRestMapElapseditem;
3127
+ this.Navvy = new Navvy(this.BXRestElapseditem, this.BXRestMapElapseditem);
3128
+ }
3129
+ getByInterval(idsUsers, dateStart, dateEnd) {
3130
+ return this.Navvy.simpleWithArg(this.BXRestElapseditem.getList, {
3131
+ ORDER: {
3132
+ ID: 'DESC'
3133
+ },
3134
+ FILTER: {
3135
+ USER_ID: idsUsers,
3136
+ '>=CREATED_DATE': dateStart.toLocaleString('ru-Ru'),
3137
+ '<=CREATED_DATE': dateEnd.toLocaleString('ru-Ru'),
3138
+ }
3139
+ });
3140
+ }
3141
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyOperationElapseditem, deps: [{ token: BXRestElapseditem }, { token: BXRestMapTaskElapseditem }], target: i0.ɵɵFactoryTarget.Injectable }); }
3142
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyOperationElapseditem, providedIn: 'root' }); }
3143
+ }
3144
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyOperationElapseditem, decorators: [{
3145
+ type: Injectable,
3146
+ args: [{
3147
+ providedIn: 'root'
3148
+ }]
3149
+ }], ctorParameters: function () { return [{ type: BXRestElapseditem }, { type: BXRestMapTaskElapseditem }]; } });
3150
+
3123
3151
  class BXRestNavvyElapseditem {
3124
- constructor(BXRestElapseditem, BXRestNavvyUser, BXRestNavvyTasks, BXRestMapElapseditem) {
3152
+ constructor(BXRestElapseditem, BXRestNavvyUser, BXRestNavvyTasks, BXRestMapElapseditem, operation) {
3125
3153
  this.BXRestElapseditem = BXRestElapseditem;
3126
3154
  this.BXRestNavvyUser = BXRestNavvyUser;
3127
3155
  this.BXRestNavvyTasks = BXRestNavvyTasks;
3128
3156
  this.BXRestMapElapseditem = BXRestMapElapseditem;
3157
+ this.operation = operation;
3129
3158
  this.Navvy = new Navvy(this.BXRestElapseditem, this.BXRestMapElapseditem);
3130
3159
  }
3131
3160
  /*
@@ -3221,63 +3250,31 @@ class BXRestNavvyElapseditem {
3221
3250
  }
3222
3251
  */
3223
3252
  /*
3224
- getByInterval(idsUsers: number[], dateStart: Date, dateEnd: Date) {
3225
- return new Navvy(
3226
- this.BXRestElapseditem.getList(
3227
- {
3228
- ORDER: {
3229
- ID: 'DESC'
3230
- },
3231
- FILTER: {
3232
- USER_ID: idsUsers,
3233
- '>=CREATED_DATE': dateStart.toLocaleString('ru-Ru'),
3234
- '<=CREATED_DATE': dateEnd.toLocaleString('ru-Ru'),
3235
- }
3236
- }
3237
- ))
3238
- /*
3239
- return this.BXRestElapseditem.getList({
3240
- ORDER: {
3241
- ID: 'DESC'
3242
- },
3243
- FILTER: {
3244
- USER_ID: idsUsers,
3245
- '>=CREATED_DATE': dateStart.toLocaleString('ru-Ru'),
3246
- '<=CREATED_DATE': dateEnd.toLocaleString('ru-Ru'),
3247
- }
3248
- }
3249
- )
3250
- */
3251
- /*
3252
- }
3253
-
3254
-
3255
- /*
3256
- getCacheOff(params: RequestParamsElapsedGetList | undefined = undefined) {
3257
- return this.http.post<iHttpAnswerBX<BXRestElapsedHttp[]> | undefined>
3258
- (this.url.getlist, params, 'не удалось получить время по задачам')
3259
- .pipe(
3260
- map(v => {
3261
- if (v && v.result) {
3262
- const newResult: BXRestElapsed[] = []
3263
- for (let task of v.result) {
3264
- newResult.push(this.elapsedBXMap.AnswerElapsedGetHttpToAnswerElapsedGet(task))
3265
- }
3266
- return extend(v, {result: newResult}) as iHttpAnswerBX<BXRestElapsed[]>
3267
- }
3268
- return undefined
3269
- }),
3270
- tap(v => {
3271
- if (v && params) {
3272
- this.store.dispatch(saveHttpTaskTime({
3273
- filter: clone(params),
3274
- time: v
3275
- }))
3253
+ getCacheOff(params: RequestParamsElapsedGetList | undefined = undefined) {
3254
+ return this.http.post<iHttpAnswerBX<BXRestElapsedHttp[]> | undefined>
3255
+ (this.url.getlist, params, 'не удалось получить время по задачам')
3256
+ .pipe(
3257
+ map(v => {
3258
+ if (v && v.result) {
3259
+ const newResult: BXRestElapsed[] = []
3260
+ for (let task of v.result) {
3261
+ newResult.push(this.elapsedBXMap.AnswerElapsedGetHttpToAnswerElapsedGet(task))
3276
3262
  }
3277
- })
3278
- )
3279
- }
3280
- */
3263
+ return extend(v, {result: newResult}) as iHttpAnswerBX<BXRestElapsed[]>
3264
+ }
3265
+ return undefined
3266
+ }),
3267
+ tap(v => {
3268
+ if (v && params) {
3269
+ this.store.dispatch(saveHttpTaskTime({
3270
+ filter: clone(params),
3271
+ time: v
3272
+ }))
3273
+ }
3274
+ })
3275
+ )
3276
+ }
3277
+ */
3281
3278
  isAllowedModify(idTask, idItem) {
3282
3279
  let permission = Permission.get();
3283
3280
  if (permission?.tasks?.length) {
@@ -3400,7 +3397,7 @@ class BXRestNavvyElapseditem {
3400
3397
  }
3401
3398
  })), 'Не удалось удалить элемент списка', v => (v === null));
3402
3399
  }
3403
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyElapseditem, deps: [{ token: BXRestElapseditem }, { token: BXRestNavvyUser }, { token: BXRestNavvyTasks }, { token: BXRestMapTaskElapseditem }], target: i0.ɵɵFactoryTarget.Injectable }); }
3400
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyElapseditem, deps: [{ token: BXRestElapseditem }, { token: BXRestNavvyUser }, { token: BXRestNavvyTasks }, { token: BXRestMapTaskElapseditem }, { token: BXRestNavvyOperationElapseditem }], target: i0.ɵɵFactoryTarget.Injectable }); }
3404
3401
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyElapseditem, providedIn: 'root' }); }
3405
3402
  }
3406
3403
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyElapseditem, decorators: [{
@@ -3408,7 +3405,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImpor
3408
3405
  args: [{
3409
3406
  providedIn: 'root'
3410
3407
  }]
3411
- }], ctorParameters: function () { return [{ type: BXRestElapseditem }, { type: BXRestNavvyUser }, { type: BXRestNavvyTasks }, { type: BXRestMapTaskElapseditem }]; } });
3408
+ }], ctorParameters: function () { return [{ type: BXRestElapseditem }, { type: BXRestNavvyUser }, { type: BXRestNavvyTasks }, { type: BXRestMapTaskElapseditem }, { type: BXRestNavvyOperationElapseditem }]; } });
3412
3409
 
3413
3410
  class BXRestNavvyTask {
3414
3411
  constructor(elapseditem) {