@veloceapps/api 4.0.18 → 4.0.20

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.
@@ -2,7 +2,6 @@ import { HttpClient } from '@angular/common/http';
2
2
  import { Attachment, BaseHttpService, DocumentTemplate, FileDownloadService, TemplateAttachmentSearchRequest } from '@veloce/core';
3
3
  import { Observable } from 'rxjs';
4
4
  import { DocumentAttachmentApiService } from './document-attachment-api.service';
5
- import { QuoteApiService } from './quote-api.service';
6
5
  import { SalesforceApiService } from './salesforce-api.service';
7
6
  import * as i0 from "@angular/core";
8
7
  export interface DocumentGenerationParams {
@@ -15,12 +14,12 @@ export declare class DocumentTemplatesApiService {
15
14
  private salesforceApiService;
16
15
  private fileDownloadService;
17
16
  private documentAttachmentService;
18
- private quoteApiService;
19
17
  private http;
18
+ readonly DOCGEN_TAG = "docgen";
20
19
  private readonly SERVICE_URL;
21
20
  private readonly DOC_GEN_URL_FALLBACK;
22
21
  private readonly DOC_GEN_URL;
23
- constructor(service: BaseHttpService, salesforceApiService: SalesforceApiService, fileDownloadService: FileDownloadService, documentAttachmentService: DocumentAttachmentApiService, quoteApiService: QuoteApiService, http: HttpClient);
22
+ constructor(service: BaseHttpService, salesforceApiService: SalesforceApiService, fileDownloadService: FileDownloadService, documentAttachmentService: DocumentAttachmentApiService, http: HttpClient);
24
23
  getTemplates(tag?: string): Observable<DocumentTemplate[]>;
25
24
  getTemplate(id: string): Observable<DocumentTemplate>;
26
25
  upsertTemplate(template: DocumentTemplate, file?: File, reportProgress?: boolean): Observable<DocumentTemplate>;
@@ -1,16 +1,18 @@
1
- import { Charge, ConfigurationContext, ConfigurePrice } from '@veloce/core';
1
+ import { Charge, CompiledPricePlan, ConfigurationContext, ConfigurePrice } from '@veloce/core';
2
2
  import { Dictionary } from 'lodash';
3
3
  import { LineItemDTO } from './line-item-dto.types';
4
4
  export interface ConfigurePriceDTO {
5
5
  lineItem: LineItemDTO;
6
6
  context: ConfigurationContext;
7
7
  charges: Dictionary<Charge>;
8
+ pricePlans: Dictionary<CompiledPricePlan>;
8
9
  deletedLineItems: LineItemDTO[];
9
10
  }
10
11
  export declare class ConfigurePriceDTO {
11
12
  lineItem: LineItemDTO;
12
13
  context: ConfigurationContext;
13
14
  charges: Dictionary<Charge>;
15
+ pricePlans: Dictionary<CompiledPricePlan>;
14
16
  static fromDTO(dto: ConfigurePriceDTO): ConfigurePrice;
15
- constructor(lineItem: LineItemDTO, context: ConfigurationContext, charges: Dictionary<Charge>);
17
+ constructor(lineItem: LineItemDTO, context: ConfigurationContext, charges: Dictionary<Charge>, pricePlans: Dictionary<CompiledPricePlan>);
16
18
  }
@@ -42,6 +42,7 @@ export declare class LineItemDTO {
42
42
  planId?: string | undefined;
43
43
  sellingFrequencyUnit?: string | undefined;
44
44
  sellingFrequencyDuration?: string | undefined;
45
+ minimalTerm?: number | undefined;
45
46
  offeringId?: string | undefined;
46
47
  offeringItemId?: string | undefined;
47
48
  offeringInstanceId?: string | undefined;
@@ -50,5 +51,5 @@ export declare class LineItemDTO {
50
51
  configurable?: boolean | undefined;
51
52
  requiresApprovals?: RequiresApproval[] | undefined;
52
53
  static fromDTO(dto: LineItemDTO): LineItem;
53
- constructor(id: string, activated: boolean, attributes: AttributeDTO[], attributeDomains: Dictionary<any[]>, cfgStatus: string, chargeGroupItems: ChargeGroupItemDTO[], chargeItems: ChargeItemDTO[], domainComputations: Dictionary<boolean>, lineItems: LineItem[], messages: string[], name: string, optionalCharges: any[], pending: boolean, portDomains: Dictionary<PortDomainDTO>, properties: Dictionary<string>, qty: number, totalPrices: Dictionary<PriceDTO>, type: string, integrationId?: string | undefined, productId?: string | undefined, port?: string | undefined, parentId?: string | undefined, assetId?: string | undefined, openOrderLineItemId?: string | undefined, productName?: string | undefined, rootId?: string | undefined, actionCode?: string | undefined, serviceStartDate?: string | undefined, effectiveDate?: string | undefined, effectiveStartDate?: string | undefined, startDate?: string | undefined, endDate?: string | undefined, priceListId?: string | undefined, planId?: string | undefined, sellingFrequencyUnit?: string | undefined, sellingFrequencyDuration?: string | undefined, offeringId?: string | undefined, offeringItemId?: string | undefined, offeringInstanceId?: string | undefined, rampInstanceId?: string | undefined, enableRamp?: boolean | undefined, configurable?: boolean | undefined, requiresApprovals?: RequiresApproval[] | undefined);
54
+ constructor(id: string, activated: boolean, attributes: AttributeDTO[], attributeDomains: Dictionary<any[]>, cfgStatus: string, chargeGroupItems: ChargeGroupItemDTO[], chargeItems: ChargeItemDTO[], domainComputations: Dictionary<boolean>, lineItems: LineItem[], messages: string[], name: string, optionalCharges: any[], pending: boolean, portDomains: Dictionary<PortDomainDTO>, properties: Dictionary<string>, qty: number, totalPrices: Dictionary<PriceDTO>, type: string, integrationId?: string | undefined, productId?: string | undefined, port?: string | undefined, parentId?: string | undefined, assetId?: string | undefined, openOrderLineItemId?: string | undefined, productName?: string | undefined, rootId?: string | undefined, actionCode?: string | undefined, serviceStartDate?: string | undefined, effectiveDate?: string | undefined, effectiveStartDate?: string | undefined, startDate?: string | undefined, endDate?: string | undefined, priceListId?: string | undefined, planId?: string | undefined, sellingFrequencyUnit?: string | undefined, sellingFrequencyDuration?: string | undefined, minimalTerm?: number | undefined, offeringId?: string | undefined, offeringItemId?: string | undefined, offeringInstanceId?: string | undefined, rampInstanceId?: string | undefined, enableRamp?: boolean | undefined, configurable?: boolean | undefined, requiresApprovals?: RequiresApproval[] | undefined);
54
55
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veloceapps/api",
3
- "version": "4.0.18",
3
+ "version": "4.0.20",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^12.2.0",
6
6
  "@angular/core": "^12.2.0",