@salesforce/lds-adapters-revenue-usage-detail 0.1.0-dev1

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.
Files changed (36) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/revenue-usage-detail.js +4359 -0
  3. package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
  4. package/dist/es/es2018/types/src/generated/adapters/getAssetUsageDetails.d.ts +29 -0
  5. package/dist/es/es2018/types/src/generated/adapters/getBindingObjectUsageDetails.d.ts +28 -0
  6. package/dist/es/es2018/types/src/generated/adapters/getOrderUsageDetails.d.ts +29 -0
  7. package/dist/es/es2018/types/src/generated/adapters/getQuoteUsageDetails.d.ts +29 -0
  8. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +4 -0
  9. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +9 -0
  10. package/dist/es/es2018/types/src/generated/resources/getAssetManagementAssetsUsageDetailsByAssetId.d.ts +19 -0
  11. package/dist/es/es2018/types/src/generated/resources/getCommerceQuotesLineItemsUsageDetailsByQuoteLineItemId.d.ts +19 -0
  12. package/dist/es/es2018/types/src/generated/resources/getCommerceSalesOrdersLineItemsUsageDetailsByOrderItemId.d.ts +19 -0
  13. package/dist/es/es2018/types/src/generated/resources/getRevenueUsageManagementBindingObjectsActionsUsageDetailsByBindingObjectId.d.ts +18 -0
  14. package/dist/es/es2018/types/src/generated/types/BindingObjectDetailOutputRepresentation.d.ts +34 -0
  15. package/dist/es/es2018/types/src/generated/types/BindingObjectGrantDetailOutputRepresentation.d.ts +63 -0
  16. package/dist/es/es2018/types/src/generated/types/BindingObjectRateAdjustmentsOutputRepresentation.d.ts +46 -0
  17. package/dist/es/es2018/types/src/generated/types/BindingObjectRateOutputRepresentation.d.ts +44 -0
  18. package/dist/es/es2018/types/src/generated/types/BindingObjectResourceGrantAndPolicyDetailOutputRepresentation.d.ts +32 -0
  19. package/dist/es/es2018/types/src/generated/types/BindingObjectResourcePolicyDetailOutputRepresentation.d.ts +44 -0
  20. package/dist/es/es2018/types/src/generated/types/FieldsOutputRepresentation.d.ts +31 -0
  21. package/dist/es/es2018/types/src/generated/types/LookupDetailOutputRepresentation.d.ts +28 -0
  22. package/dist/es/es2018/types/src/generated/types/NegotiatedGrantDetailOutputRepresentation.d.ts +50 -0
  23. package/dist/es/es2018/types/src/generated/types/PolicyDetailOutputRepresentation.d.ts +31 -0
  24. package/dist/es/es2018/types/src/generated/types/RateAdjustmentsOutputRepresentation.d.ts +56 -0
  25. package/dist/es/es2018/types/src/generated/types/RateCardEntryOutputRepresentation.d.ts +84 -0
  26. package/dist/es/es2018/types/src/generated/types/ResourcePolicyDetailOutputRepresentation.d.ts +41 -0
  27. package/dist/es/es2018/types/src/generated/types/UsageDetailBindingObjectOutputRepresentation.d.ts +34 -0
  28. package/dist/es/es2018/types/src/generated/types/UsageDetailErrorResponseRepresentation.d.ts +34 -0
  29. package/dist/es/es2018/types/src/generated/types/UsageDetailOutputRepresentation.d.ts +34 -0
  30. package/dist/es/es2018/types/src/generated/types/UsageResourceGrantAndPolicyDetailOutputRepresentation.d.ts +39 -0
  31. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  32. package/package.json +67 -0
  33. package/sfdc/index.d.ts +1 -0
  34. package/sfdc/index.js +4433 -0
  35. package/src/raml/api.raml +520 -0
  36. package/src/raml/luvio.raml +32 -0
@@ -0,0 +1,31 @@
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const VERSION = "1da78482f83880ca15bb8b054e656744";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: FieldsOutputRepresentation, existing: FieldsOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): FieldsOutputRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: FieldsOutputRepresentationNormalized, incoming: FieldsOutputRepresentationNormalized): boolean;
8
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
9
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: FieldsOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Usage Detail API output representation for optional fields in the QOCAL usage-based selling entities
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface FieldsOutputRepresentationNormalized {
17
+ /** The displayable value for a field. */
18
+ displayValue: string;
19
+ /** The value of a field in its raw data form. */
20
+ value: unknown;
21
+ }
22
+ /**
23
+ * Usage Detail API output representation for optional fields in the QOCAL usage-based selling entities
24
+ *
25
+ * Keys:
26
+ * (none)
27
+ */
28
+ export interface FieldsOutputRepresentation {
29
+ displayValue: string;
30
+ value: unknown;
31
+ }
@@ -0,0 +1,28 @@
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const VERSION = "33e33f0cd2919c7a3113b7c4b63348fb";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: LookupDetailOutputRepresentation, existing: LookupDetailOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): LookupDetailOutputRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: LookupDetailOutputRepresentationNormalized, incoming: LookupDetailOutputRepresentationNormalized): boolean;
8
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
9
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: LookupDetailOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Usage Detail API output representation for Record Detail
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface LookupDetailOutputRepresentationNormalized {
17
+ /** Record ID */
18
+ id: string | null;
19
+ }
20
+ /**
21
+ * Usage Detail API output representation for Record Detail
22
+ *
23
+ * Keys:
24
+ * (none)
25
+ */
26
+ export interface LookupDetailOutputRepresentation {
27
+ id: string | null;
28
+ }
@@ -0,0 +1,50 @@
1
+ import { PolicyDetailOutputRepresentation as PolicyDetailOutputRepresentation_PolicyDetailOutputRepresentation } from './PolicyDetailOutputRepresentation';
2
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
3
+ export declare const VERSION = "8d4fc60883c9534fc4637046cb405afe";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: NegotiatedGrantDetailOutputRepresentation, existing: NegotiatedGrantDetailOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): NegotiatedGrantDetailOutputRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: NegotiatedGrantDetailOutputRepresentationNormalized, incoming: NegotiatedGrantDetailOutputRepresentationNormalized): boolean;
9
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
10
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: NegotiatedGrantDetailOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Usage Detail API output representation for Negotiated Usage ResourceGrant Detail
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface NegotiatedGrantDetailOutputRepresentationNormalized {
18
+ /** Grant Type */
19
+ grantType: string | null;
20
+ /** Id */
21
+ id?: string | null;
22
+ /** Quantity */
23
+ quantity: number | null;
24
+ /** Usage grant negotiable */
25
+ usageGrantNegotiable: string | null;
26
+ /** Usage grant refresh policy ID */
27
+ usageRefreshPolicy: PolicyDetailOutputRepresentation_PolicyDetailOutputRepresentation | null;
28
+ /** Usage grant rollover policy ID */
29
+ usageRolloverPolicy: PolicyDetailOutputRepresentation_PolicyDetailOutputRepresentation | null;
30
+ /** Validity period term */
31
+ validityPeriodTerm: number | null;
32
+ /** Validity period unit */
33
+ validityPeriodUnit: string | null;
34
+ }
35
+ /**
36
+ * Usage Detail API output representation for Negotiated Usage ResourceGrant Detail
37
+ *
38
+ * Keys:
39
+ * (none)
40
+ */
41
+ export interface NegotiatedGrantDetailOutputRepresentation {
42
+ grantType: string | null;
43
+ id?: string | null;
44
+ quantity: number | null;
45
+ usageGrantNegotiable: string | null;
46
+ usageRefreshPolicy: PolicyDetailOutputRepresentation_PolicyDetailOutputRepresentation | null;
47
+ usageRolloverPolicy: PolicyDetailOutputRepresentation_PolicyDetailOutputRepresentation | null;
48
+ validityPeriodTerm: number | null;
49
+ validityPeriodUnit: string | null;
50
+ }
@@ -0,0 +1,31 @@
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const VERSION = "750a8174fcbd532f0a64116220b53185";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: PolicyDetailOutputRepresentation, existing: PolicyDetailOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PolicyDetailOutputRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: PolicyDetailOutputRepresentationNormalized, incoming: PolicyDetailOutputRepresentationNormalized): boolean;
8
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
9
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: PolicyDetailOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Usage Detail API output representation for Policy Detail
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface PolicyDetailOutputRepresentationNormalized {
17
+ /** Policy ID */
18
+ id: string | null;
19
+ /** Policy Negotiable Flag */
20
+ negotiable: string | null;
21
+ }
22
+ /**
23
+ * Usage Detail API output representation for Policy Detail
24
+ *
25
+ * Keys:
26
+ * (none)
27
+ */
28
+ export interface PolicyDetailOutputRepresentation {
29
+ id: string | null;
30
+ negotiable: string | null;
31
+ }
@@ -0,0 +1,56 @@
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const VERSION = "52841d9c877e06c71e0dcddc6196cee0";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: RateAdjustmentsOutputRepresentation, existing: RateAdjustmentsOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): RateAdjustmentsOutputRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: RateAdjustmentsOutputRepresentationNormalized, incoming: RateAdjustmentsOutputRepresentationNormalized): boolean;
8
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
9
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: RateAdjustmentsOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Usage Detail API output representation for Rate Adjustments
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface RateAdjustmentsOutputRepresentationNormalized {
17
+ /** List of optional fields and their values belonging to the QOCAL rate adjustment entity. */
18
+ fields?: {
19
+ [key: string]: unknown;
20
+ };
21
+ /** Minimum quantity for the adjustment to be applicable. */
22
+ lowerBound: number | null;
23
+ /** Name of the tier. */
24
+ name: string | null;
25
+ /** ID of the Negotiated Rate Adjustment. */
26
+ negotiatedRateAdjustmentId: string | null;
27
+ /** ID of the Rate Adjustment. */
28
+ rateAdjustmentId: string;
29
+ /** Type of rate adjustment. */
30
+ rateAdjustmentType: string | null;
31
+ /** Value of the adjustment. */
32
+ rateAdjustmentValue: number | null;
33
+ /** The unit of measure representing the tier. */
34
+ tierUnitOfMeasure: string | null;
35
+ /** Maximum quantity for the adjustment to be applicable. */
36
+ upperBound: number | null;
37
+ }
38
+ /**
39
+ * Usage Detail API output representation for Rate Adjustments
40
+ *
41
+ * Keys:
42
+ * (none)
43
+ */
44
+ export interface RateAdjustmentsOutputRepresentation {
45
+ fields?: {
46
+ [key: string]: unknown;
47
+ };
48
+ lowerBound: number | null;
49
+ name: string | null;
50
+ negotiatedRateAdjustmentId: string | null;
51
+ rateAdjustmentId: string;
52
+ rateAdjustmentType: string | null;
53
+ rateAdjustmentValue: number | null;
54
+ tierUnitOfMeasure: string | null;
55
+ upperBound: number | null;
56
+ }
@@ -0,0 +1,84 @@
1
+ import { RateAdjustmentsOutputRepresentation as RateAdjustmentsOutputRepresentation_RateAdjustmentsOutputRepresentation } from './RateAdjustmentsOutputRepresentation';
2
+ import { UsageResourceGrantAndPolicyDetailOutputRepresentation as UsageResourceGrantAndPolicyDetailOutputRepresentation_UsageResourceGrantAndPolicyDetailOutputRepresentation } from './UsageResourceGrantAndPolicyDetailOutputRepresentation';
3
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
4
+ export declare const VERSION = "a399d4f31b7dcae001794cce64c40be8";
5
+ export declare function validate(obj: any, path?: string): TypeError | null;
6
+ export declare const RepresentationType: string;
7
+ export declare function normalize(input: RateCardEntryOutputRepresentation, existing: RateCardEntryOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): RateCardEntryOutputRepresentationNormalized;
8
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
9
+ export declare function equals(existing: RateCardEntryOutputRepresentationNormalized, incoming: RateCardEntryOutputRepresentationNormalized): boolean;
10
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
11
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: RateCardEntryOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
12
+ /**
13
+ * Usage Detail API output representation for Rate Card Entry
14
+ *
15
+ * Keys:
16
+ * (none)
17
+ */
18
+ export interface RateCardEntryOutputRepresentationNormalized {
19
+ /** Type of the target entity which is binding with this transaction */
20
+ bindingInstanceTargetType?: string | null;
21
+ /** A static enum with values “Self” and “Target”. */
22
+ bindingInstanceType?: string | null;
23
+ /** Specifies whether overage is allowed. Valid values are: Yes, No, NA */
24
+ chargeForOverages: string | null;
25
+ /** List of optional fields and their values belonging to the QOCAL rate card entry entity. */
26
+ fields?: {
27
+ [key: string]: unknown;
28
+ };
29
+ /** Requirement flag for Commitment */
30
+ isOptional?: boolean | null;
31
+ /** Name of the resource. */
32
+ name: string | null;
33
+ /** Specifies the negotiable type. Valid values are: Negotiable, NonNegotiable */
34
+ negotiable: string | null;
35
+ /** User-overridden rate. */
36
+ negotiatedRate: number | null;
37
+ /** ID of the negotiated rate card entry. */
38
+ negotiatedRateCardEntryId: string | null;
39
+ /** Amount granted for the resource. */
40
+ quantity: number | null;
41
+ /** Base rate. */
42
+ rate: number | null;
43
+ /** List of tiers associated with the rate card entry, if applicable. */
44
+ rateAdjustments: Array<RateAdjustmentsOutputRepresentation_RateAdjustmentsOutputRepresentation | null>;
45
+ /** ID of the rate card entry. */
46
+ rateCardEntryId: string;
47
+ /** Unit of measure name in which usage resource is rated. */
48
+ rateUnitOfMeasureName: string | null;
49
+ /** Unit of measure for the grant. */
50
+ unitOfMeasure: string | null;
51
+ /** The unit of measure code representing the overage rate. */
52
+ unitOfMeasureCode: string | null;
53
+ usageResourceGrantAndPolicyDetail?: UsageResourceGrantAndPolicyDetailOutputRepresentation_UsageResourceGrantAndPolicyDetailOutputRepresentation;
54
+ /** Usage Resource ID */
55
+ usageResourceId?: string | null;
56
+ }
57
+ /**
58
+ * Usage Detail API output representation for Rate Card Entry
59
+ *
60
+ * Keys:
61
+ * (none)
62
+ */
63
+ export interface RateCardEntryOutputRepresentation {
64
+ bindingInstanceTargetType?: string | null;
65
+ bindingInstanceType?: string | null;
66
+ chargeForOverages: string | null;
67
+ fields?: {
68
+ [key: string]: unknown;
69
+ };
70
+ isOptional?: boolean | null;
71
+ name: string | null;
72
+ negotiable: string | null;
73
+ negotiatedRate: number | null;
74
+ negotiatedRateCardEntryId: string | null;
75
+ quantity: number | null;
76
+ rate: number | null;
77
+ rateAdjustments: Array<RateAdjustmentsOutputRepresentation_RateAdjustmentsOutputRepresentation | null>;
78
+ rateCardEntryId: string;
79
+ rateUnitOfMeasureName: string | null;
80
+ unitOfMeasure: string | null;
81
+ unitOfMeasureCode: string | null;
82
+ usageResourceGrantAndPolicyDetail?: UsageResourceGrantAndPolicyDetailOutputRepresentation_UsageResourceGrantAndPolicyDetailOutputRepresentation;
83
+ usageResourceId?: string | null;
84
+ }
@@ -0,0 +1,41 @@
1
+ import { PolicyDetailOutputRepresentation as PolicyDetailOutputRepresentation_PolicyDetailOutputRepresentation } from './PolicyDetailOutputRepresentation';
2
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
3
+ export declare const VERSION = "acaecc54e4457dd62382644206c35637";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: ResourcePolicyDetailOutputRepresentation, existing: ResourcePolicyDetailOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ResourcePolicyDetailOutputRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: ResourcePolicyDetailOutputRepresentationNormalized, incoming: ResourcePolicyDetailOutputRepresentationNormalized): boolean;
9
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
10
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ResourcePolicyDetailOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Usage Detail API output representation for Usage Resource Policy Detail
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface ResourcePolicyDetailOutputRepresentationNormalized {
18
+ /** Id */
19
+ id?: string | null;
20
+ /** Rating frequency policy */
21
+ ratingFrequencyPolicy: PolicyDetailOutputRepresentation_PolicyDetailOutputRepresentation | null;
22
+ /** Usage aggregation policy */
23
+ usageAggregationPolicy: PolicyDetailOutputRepresentation_PolicyDetailOutputRepresentation | null;
24
+ /** Usage commitment policy */
25
+ usageCommitmentPolicy: PolicyDetailOutputRepresentation_PolicyDetailOutputRepresentation | null;
26
+ /** Usage overage policy */
27
+ usageOveragePolicy: PolicyDetailOutputRepresentation_PolicyDetailOutputRepresentation | null;
28
+ }
29
+ /**
30
+ * Usage Detail API output representation for Usage Resource Policy Detail
31
+ *
32
+ * Keys:
33
+ * (none)
34
+ */
35
+ export interface ResourcePolicyDetailOutputRepresentation {
36
+ id?: string | null;
37
+ ratingFrequencyPolicy: PolicyDetailOutputRepresentation_PolicyDetailOutputRepresentation | null;
38
+ usageAggregationPolicy: PolicyDetailOutputRepresentation_PolicyDetailOutputRepresentation | null;
39
+ usageCommitmentPolicy: PolicyDetailOutputRepresentation_PolicyDetailOutputRepresentation | null;
40
+ usageOveragePolicy: PolicyDetailOutputRepresentation_PolicyDetailOutputRepresentation | null;
41
+ }
@@ -0,0 +1,34 @@
1
+ import { UsageDetailErrorResponseRepresentation as UsageDetailErrorResponseRepresentation_UsageDetailErrorResponseRepresentation } from './UsageDetailErrorResponseRepresentation';
2
+ import { BindingObjectDetailOutputRepresentation as BindingObjectDetailOutputRepresentation_BindingObjectDetailOutputRepresentation } from './BindingObjectDetailOutputRepresentation';
3
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
4
+ export declare const TTL = 1000;
5
+ export declare const VERSION = "9069d220a2be54179acb1ff90002cc10";
6
+ export declare function validate(obj: any, path?: string): TypeError | null;
7
+ export declare const RepresentationType: string;
8
+ export declare function normalize(input: UsageDetailBindingObjectOutputRepresentation, existing: UsageDetailBindingObjectOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): UsageDetailBindingObjectOutputRepresentationNormalized;
9
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
10
+ export declare function equals(existing: UsageDetailBindingObjectOutputRepresentationNormalized, incoming: UsageDetailBindingObjectOutputRepresentationNormalized): boolean;
11
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
12
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: UsageDetailBindingObjectOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
13
+ /**
14
+ * Usage Detail API output representation for Binding Object
15
+ *
16
+ * Keys:
17
+ * (none)
18
+ */
19
+ export interface UsageDetailBindingObjectOutputRepresentationNormalized {
20
+ /** List of errors. */
21
+ errors?: Array<UsageDetailErrorResponseRepresentation_UsageDetailErrorResponseRepresentation>;
22
+ /** List of binding target detail records. */
23
+ records?: Array<BindingObjectDetailOutputRepresentation_BindingObjectDetailOutputRepresentation>;
24
+ }
25
+ /**
26
+ * Usage Detail API output representation for Binding Object
27
+ *
28
+ * Keys:
29
+ * (none)
30
+ */
31
+ export interface UsageDetailBindingObjectOutputRepresentation {
32
+ errors?: Array<UsageDetailErrorResponseRepresentation_UsageDetailErrorResponseRepresentation>;
33
+ records?: Array<BindingObjectDetailOutputRepresentation_BindingObjectDetailOutputRepresentation>;
34
+ }
@@ -0,0 +1,34 @@
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const VERSION = "e0ac6bf27e20d64b8c2926f058c43ea4";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: UsageDetailErrorResponseRepresentation, existing: UsageDetailErrorResponseRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): UsageDetailErrorResponseRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: UsageDetailErrorResponseRepresentationNormalized, incoming: UsageDetailErrorResponseRepresentationNormalized): boolean;
8
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
9
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: UsageDetailErrorResponseRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * The output representation for an error for Usage Detail
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface UsageDetailErrorResponseRepresentationNormalized {
17
+ /** Error Code */
18
+ errorCode: string;
19
+ /** Error Message */
20
+ message: string;
21
+ /** Reference ID */
22
+ referenceId: string;
23
+ }
24
+ /**
25
+ * The output representation for an error for Usage Detail
26
+ *
27
+ * Keys:
28
+ * (none)
29
+ */
30
+ export interface UsageDetailErrorResponseRepresentation {
31
+ errorCode: string;
32
+ message: string;
33
+ referenceId: string;
34
+ }
@@ -0,0 +1,34 @@
1
+ import { UsageDetailErrorResponseRepresentation as UsageDetailErrorResponseRepresentation_UsageDetailErrorResponseRepresentation } from './UsageDetailErrorResponseRepresentation';
2
+ import { RateCardEntryOutputRepresentation as RateCardEntryOutputRepresentation_RateCardEntryOutputRepresentation } from './RateCardEntryOutputRepresentation';
3
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
4
+ export declare const TTL = 1000;
5
+ export declare const VERSION = "338996bd44a293867ffaab2724d4c41f";
6
+ export declare function validate(obj: any, path?: string): TypeError | null;
7
+ export declare const RepresentationType: string;
8
+ export declare function normalize(input: UsageDetailOutputRepresentation, existing: UsageDetailOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): UsageDetailOutputRepresentationNormalized;
9
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
10
+ export declare function equals(existing: UsageDetailOutputRepresentationNormalized, incoming: UsageDetailOutputRepresentationNormalized): boolean;
11
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
12
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: UsageDetailOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
13
+ /**
14
+ * Usage Detail API output representation
15
+ *
16
+ * Keys:
17
+ * (none)
18
+ */
19
+ export interface UsageDetailOutputRepresentationNormalized {
20
+ /** List of errors. */
21
+ errors?: Array<UsageDetailErrorResponseRepresentation_UsageDetailErrorResponseRepresentation>;
22
+ /** List of rate card entry records. */
23
+ records?: Array<RateCardEntryOutputRepresentation_RateCardEntryOutputRepresentation>;
24
+ }
25
+ /**
26
+ * Usage Detail API output representation
27
+ *
28
+ * Keys:
29
+ * (none)
30
+ */
31
+ export interface UsageDetailOutputRepresentation {
32
+ errors?: Array<UsageDetailErrorResponseRepresentation_UsageDetailErrorResponseRepresentation>;
33
+ records?: Array<RateCardEntryOutputRepresentation_RateCardEntryOutputRepresentation>;
34
+ }
@@ -0,0 +1,39 @@
1
+ import { NegotiatedGrantDetailOutputRepresentation as NegotiatedGrantDetailOutputRepresentation_NegotiatedGrantDetailOutputRepresentation } from './NegotiatedGrantDetailOutputRepresentation';
2
+ import { ResourcePolicyDetailOutputRepresentation as ResourcePolicyDetailOutputRepresentation_ResourcePolicyDetailOutputRepresentation } from './ResourcePolicyDetailOutputRepresentation';
3
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
4
+ export declare const VERSION = "b89882d349b55468ea9c26a4b5cf2ea1";
5
+ export declare function validate(obj: any, path?: string): TypeError | null;
6
+ export declare const RepresentationType: string;
7
+ export declare function normalize(input: UsageResourceGrantAndPolicyDetailOutputRepresentation, existing: UsageResourceGrantAndPolicyDetailOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): UsageResourceGrantAndPolicyDetailOutputRepresentationNormalized;
8
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
9
+ export declare function equals(existing: UsageResourceGrantAndPolicyDetailOutputRepresentationNormalized, incoming: UsageResourceGrantAndPolicyDetailOutputRepresentationNormalized): boolean;
10
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
11
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: UsageResourceGrantAndPolicyDetailOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
12
+ /**
13
+ * Usage Detail API output representation for Usage Resource Grant And Policy Detail
14
+ *
15
+ * Keys:
16
+ * (none)
17
+ */
18
+ export interface UsageResourceGrantAndPolicyDetailOutputRepresentationNormalized {
19
+ /** Usage resource grant detail. */
20
+ grantDetail?: NegotiatedGrantDetailOutputRepresentation_NegotiatedGrantDetailOutputRepresentation;
21
+ /** Usage resource negotiated grant detail. */
22
+ negotiatedGrantDetail?: NegotiatedGrantDetailOutputRepresentation_NegotiatedGrantDetailOutputRepresentation;
23
+ /** Usage resource negotiated policy detail. */
24
+ negotiatedResourcePolicyDetail?: ResourcePolicyDetailOutputRepresentation_ResourcePolicyDetailOutputRepresentation;
25
+ /** Usage resource policy detail. */
26
+ resourcePolicyDetail?: ResourcePolicyDetailOutputRepresentation_ResourcePolicyDetailOutputRepresentation;
27
+ }
28
+ /**
29
+ * Usage Detail API output representation for Usage Resource Grant And Policy Detail
30
+ *
31
+ * Keys:
32
+ * (none)
33
+ */
34
+ export interface UsageResourceGrantAndPolicyDetailOutputRepresentation {
35
+ grantDetail?: NegotiatedGrantDetailOutputRepresentation_NegotiatedGrantDetailOutputRepresentation;
36
+ negotiatedGrantDetail?: NegotiatedGrantDetailOutputRepresentation_NegotiatedGrantDetailOutputRepresentation;
37
+ negotiatedResourcePolicyDetail?: ResourcePolicyDetailOutputRepresentation_ResourcePolicyDetailOutputRepresentation;
38
+ resourcePolicyDetail?: ResourcePolicyDetailOutputRepresentation_ResourcePolicyDetailOutputRepresentation;
39
+ }
@@ -0,0 +1,32 @@
1
+ import { NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const ObjectKeys: {
3
+ (o: object): string[];
4
+ (o: {}): string[];
5
+ }, ObjectCreate: {
6
+ (o: object | null): any;
7
+ (o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
8
+ }, ObjectAssign: {
9
+ <T extends {}, U>(target: T, source: U): T & U;
10
+ <T_1 extends {}, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 & U_1 & V;
11
+ <T_2 extends {}, U_2, V_1, W>(target: T_2, source1: U_2, source2: V_1, source3: W): T_2 & U_2 & V_1 & W;
12
+ (target: object, ...sources: any[]): any;
13
+ };
14
+ export declare const ArrayIsArray: (arg: any) => arg is any[];
15
+ export declare const JSONStringify: {
16
+ (value: any, replacer?: ((this: any, key: string, value: any) => any) | undefined, space?: string | number | undefined): string;
17
+ (value: any, replacer?: (string | number)[] | null | undefined, space?: string | number | undefined): string;
18
+ };
19
+ type AllowedPrimitives = boolean | string | number | Date | null;
20
+ type Value<T> = T extends AllowedPrimitives ? T : RecursivePartial<T>;
21
+ export type RecursivePartial<T> = null | {
22
+ [P in keyof T]?: T[P] extends Array<infer U> ? Array<Value<U>> | null : Value<T[P]> | null;
23
+ };
24
+ export declare function equalsArray<U, V extends U[]>(a: V, b: V, equalsItem: (itemA: U, itemB: U) => boolean | void): boolean;
25
+ export declare function equalsObject<U, V extends {
26
+ [key: string]: U;
27
+ }>(a: V, b: V, equalsProp: (propA: U, propB: U) => boolean | void): boolean;
28
+ export declare function createLink(ref: string | $64$luvio_engine_NormalizedKeyMetadata): {
29
+ __ref: string;
30
+ };
31
+ export declare function assignMetadataLink(entry: any, metadataKey: string | $64$luvio_engine_NormalizedKeyMetadata): void;
32
+ export {};
package/package.json ADDED
@@ -0,0 +1,67 @@
1
+ {
2
+ "name": "@salesforce/lds-adapters-revenue-usage-detail",
3
+ "version": "0.1.0-dev1",
4
+ "description": "QOCAL Usage Details",
5
+ "license": "SEE LICENSE IN LICENSE.txt",
6
+ "main": "dist/es/es2018/revenue-usage-detail.js",
7
+ "module": "dist/es/es2018/revenue-usage-detail.js",
8
+ "types": "dist/es/es2018/types/src/generated/artifacts/main.d.ts",
9
+ "files": [
10
+ "dist",
11
+ "sfdc",
12
+ "src/raml/*"
13
+ ],
14
+ "exports": {
15
+ ".": {
16
+ "types": "./dist/es/es2018/types/src/generated/artifacts/main.d.ts",
17
+ "import": "./dist/es/es2018/revenue-usage-detail.js",
18
+ "require": "./dist/es/es2018/revenue-usage-detail.js"
19
+ },
20
+ "./sfdc": {
21
+ "types": "./sfdc/index.d.ts",
22
+ "import": "./sfdc/index.js",
23
+ "default": "./sfdc/index.js"
24
+ }
25
+ },
26
+ "sfdc": {
27
+ "namespace": "lightning",
28
+ "module": "revenueUsageDetailApi"
29
+ },
30
+ "contributors": [
31
+ "anton.dovzhik@salesforce.com",
32
+ ""
33
+ ],
34
+ "scripts": {
35
+ "build": "yarn build:services",
36
+ "build:raml": "luvio generate src/raml/luvio.raml src/generated -p '../lds-compiler-plugins'",
37
+ "build:services": "rollup --bundleConfigAsCjs --config rollup.config.js",
38
+ "clean": "rm -rf dist sfdc src/generated",
39
+ "release:core": "../../scripts/release/core.js --adapter=lds-adapters-revenue-usage-detail",
40
+ "release:corejar": "yarn build && ../core-build/scripts/core.js --adapter=lds-adapters-revenue-usage-detail",
41
+ "test:unit": "jest"
42
+ },
43
+ "dependencies": {
44
+ "@salesforce/lds-bindings": "^0.1.0-dev1"
45
+ },
46
+ "devDependencies": {
47
+ "@salesforce/lds-compiler-plugins": "^0.1.0-dev1"
48
+ },
49
+ "nx": {
50
+ "targets": {
51
+ "build": {
52
+ "outputs": [
53
+ "{projectRoot}/dist",
54
+ "{projectRoot}/sfdc"
55
+ ]
56
+ },
57
+ "build:raml": {
58
+ "outputs": [
59
+ "{projectRoot}/src/generated"
60
+ ]
61
+ }
62
+ }
63
+ },
64
+ "volta": {
65
+ "extends": "../../package.json"
66
+ }
67
+ }
@@ -0,0 +1 @@
1
+ export * from '../dist/es/es2018/types/src/generated/artifacts/sfdc';