@infrab4a/connect 4.20.0-beta.13 → 4.20.0-beta.14
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/index.cjs.js
CHANGED
|
@@ -2499,10 +2499,15 @@ class GlampointsPaymentService {
|
|
|
2499
2499
|
async rewardByOrder(orderId, user, lineItens) {
|
|
2500
2500
|
try {
|
|
2501
2501
|
const points = lineItens.filter((item) => !item.isGift).reduce((acc, li) => acc + li.quantity, 0);
|
|
2502
|
+
console.log('GlampointsPaymentService glamCredentials', this.glamCredentials);
|
|
2502
2503
|
const result = await axios__default["default"]({
|
|
2503
2504
|
method: 'POST',
|
|
2504
2505
|
url: `${this.glamCredentials.baseUrl}/integration/win/reward`,
|
|
2505
|
-
headers: {
|
|
2506
|
+
headers: {
|
|
2507
|
+
'Content-Type': 'application/json',
|
|
2508
|
+
Authorization: `Bearer ${this.glamCredentials.integrationToken}`,
|
|
2509
|
+
Origin: 'https://cloudfunctions.b4a.com.br',
|
|
2510
|
+
},
|
|
2506
2511
|
timeout: 60000,
|
|
2507
2512
|
data: {
|
|
2508
2513
|
personId: user.id,
|
|
@@ -2528,7 +2533,11 @@ class GlampointsPaymentService {
|
|
|
2528
2533
|
const result = await axios__default["default"]({
|
|
2529
2534
|
method: 'POST',
|
|
2530
2535
|
url: `${this.glamCredentials.baseUrl}/integration/negativate/reward`,
|
|
2531
|
-
headers: {
|
|
2536
|
+
headers: {
|
|
2537
|
+
'Content-Type': 'application/json',
|
|
2538
|
+
Authorization: `Bearer ${this.glamCredentials.integrationToken}`,
|
|
2539
|
+
Origin: 'https://cloudfunctions.b4a.com.br',
|
|
2540
|
+
},
|
|
2532
2541
|
timeout: 60000,
|
|
2533
2542
|
data: {
|
|
2534
2543
|
rewardType: 51,
|
package/index.esm.js
CHANGED
|
@@ -2493,10 +2493,15 @@ class GlampointsPaymentService {
|
|
|
2493
2493
|
async rewardByOrder(orderId, user, lineItens) {
|
|
2494
2494
|
try {
|
|
2495
2495
|
const points = lineItens.filter((item) => !item.isGift).reduce((acc, li) => acc + li.quantity, 0);
|
|
2496
|
+
console.log('GlampointsPaymentService glamCredentials', this.glamCredentials);
|
|
2496
2497
|
const result = await axios({
|
|
2497
2498
|
method: 'POST',
|
|
2498
2499
|
url: `${this.glamCredentials.baseUrl}/integration/win/reward`,
|
|
2499
|
-
headers: {
|
|
2500
|
+
headers: {
|
|
2501
|
+
'Content-Type': 'application/json',
|
|
2502
|
+
Authorization: `Bearer ${this.glamCredentials.integrationToken}`,
|
|
2503
|
+
Origin: 'https://cloudfunctions.b4a.com.br',
|
|
2504
|
+
},
|
|
2500
2505
|
timeout: 60000,
|
|
2501
2506
|
data: {
|
|
2502
2507
|
personId: user.id,
|
|
@@ -2522,7 +2527,11 @@ class GlampointsPaymentService {
|
|
|
2522
2527
|
const result = await axios({
|
|
2523
2528
|
method: 'POST',
|
|
2524
2529
|
url: `${this.glamCredentials.baseUrl}/integration/negativate/reward`,
|
|
2525
|
-
headers: {
|
|
2530
|
+
headers: {
|
|
2531
|
+
'Content-Type': 'application/json',
|
|
2532
|
+
Authorization: `Bearer ${this.glamCredentials.integrationToken}`,
|
|
2533
|
+
Origin: 'https://cloudfunctions.b4a.com.br',
|
|
2534
|
+
},
|
|
2526
2535
|
timeout: 60000,
|
|
2527
2536
|
data: {
|
|
2528
2537
|
rewardType: 51,
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ import { FirestoreRepository, FirestoreSubRepository } from '../types';
|
|
|
5
5
|
export declare const withHelpers: <TMixinBase extends MixinCtor<any, any[]> = MixinCtor<any, any[]>>(MixinBase: MixinCtor<any, any[]> & TMixinBase) => {
|
|
6
6
|
new (...args: any[]): {
|
|
7
7
|
[x: string]: any;
|
|
8
|
-
toArray<T extends ModelBaseStructure<T, T["identifiersFields"][number]>>(snapShot: QuerySnapshot<T
|
|
8
|
+
toArray<T extends ModelBaseStructure<T, T["identifiersFields"][number]>>(snapShot: QuerySnapshot<T> | QueryDocumentSnapshot<T>[]): T[];
|
|
9
9
|
isSubCollection<T_1 extends ModelBaseStructure<T_1, T_1["identifiersFields"][number]>, E extends ModelBaseStructure<E, E["identifiersFields"][number]>>(repository: FirestoreRepository<T_1> | FirestoreSubRepository<T_1, E>): repository is FirestoreSubRepository<T_1, E>;
|
|
10
10
|
};
|
|
11
11
|
} & TMixinBase;
|