@dataclouder/ngx-core 0.1.53 → 0.2.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dataclouder/ngx-core",
3
- "version": "0.1.53",
3
+ "version": "0.2.1",
4
4
  "description": "Angular core components library for DataClouder applications, only for internal use",
5
5
  "author": {
6
6
  "name": "dataclouder",
@@ -692,27 +692,36 @@ declare abstract class EntityCommunicationService<T> {
692
692
  protected httpService: HttpCoreService;
693
693
  protected customHost?: string;
694
694
  constructor(serviceName: string);
695
+ findAll(query?: any): Promise<T[]>;
695
696
  /**
696
- * @deprecated Use operation({ action: 'find', query: {} }) instead.
697
+ * @deprecated Use findAll(query) instead.
697
698
  */
698
- findAll(): Promise<T[]>;
699
699
  findAllOperation(query?: any): Promise<T[]>;
700
- findOne(id: string): Promise<T>;
701
- findOneOperation(id: string, projection?: any): Promise<T>;
700
+ findOne(id: string, projection?: any): Promise<T>;
702
701
  /**
703
- * @deprecated Use operation({ action: 'findOne', query, projection }) instead.
702
+ * @deprecated Use findOne(id, projection) instead.
704
703
  */
704
+ findOneOperation(id: string, projection?: any): Promise<T>;
705
705
  findOneByQuery(query: any, projection?: any): Promise<T>;
706
706
  createOrUpdate(entity: Partial<T>): Promise<T>;
707
+ /**
708
+ * @deprecated Use createOrUpdate(payload) instead.
709
+ */
707
710
  createOperation(payload: Partial<T>): Promise<T>;
708
711
  query(filterConfig: FiltersConfig): Promise<IFilterQueryResponse<T>>;
709
712
  /**
710
- * @deprecated Use operation({ action: 'updateOne', query: { _id: id }, payload: update }) instead.
713
+ * @deprecated Use createOrUpdate instead.
711
714
  */
712
715
  update(id: string, update: any): Promise<T>;
716
+ /**
717
+ * @deprecated Use createOrUpdate or updateOne instead.
718
+ */
713
719
  updateOneOperation(id: string, payload: any): Promise<T>;
714
720
  partialUpdate(id: string, partialUpdates: Partial<T>): Promise<T>;
715
721
  remove(id: string): Promise<void>;
722
+ /**
723
+ * @deprecated Use remove(id) instead.
724
+ */
716
725
  removeOperation(id: string): Promise<any>;
717
726
  clone(id: string, overrides?: Partial<T>): Promise<T>;
718
727
  getFixedQuery(): Record<string, any>;