@dynamic-labs/sdk-api 0.0.712 → 0.0.713
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
|
@@ -14,6 +14,7 @@ function RetentionTrendResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
14
14
|
}
|
|
15
15
|
return {
|
|
16
16
|
'cohortWeek': (new Date(json['cohortWeek'])),
|
|
17
|
+
'returningWeek': (new Date(json['returningWeek'])),
|
|
17
18
|
'retentionPct': !runtime.exists(json, 'retentionPct') ? undefined : json['retentionPct'],
|
|
18
19
|
};
|
|
19
20
|
}
|
|
@@ -26,6 +27,7 @@ function RetentionTrendResultToJSON(value) {
|
|
|
26
27
|
}
|
|
27
28
|
return {
|
|
28
29
|
'cohortWeek': (value.cohortWeek.toISOString().substr(0, 10)),
|
|
30
|
+
'returningWeek': (value.returningWeek.toISOString().substr(0, 10)),
|
|
29
31
|
'retentionPct': value.retentionPct,
|
|
30
32
|
};
|
|
31
33
|
}
|
|
@@ -21,6 +21,12 @@ export interface RetentionTrendResult {
|
|
|
21
21
|
* @memberof RetentionTrendResult
|
|
22
22
|
*/
|
|
23
23
|
cohortWeek: Date;
|
|
24
|
+
/**
|
|
25
|
+
* Week beginning date for returning week
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof RetentionTrendResult
|
|
28
|
+
*/
|
|
29
|
+
returningWeek: Date;
|
|
24
30
|
/**
|
|
25
31
|
* Retention percentage for this cohort
|
|
26
32
|
* @type {number}
|
|
@@ -10,6 +10,7 @@ function RetentionTrendResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
10
10
|
}
|
|
11
11
|
return {
|
|
12
12
|
'cohortWeek': (new Date(json['cohortWeek'])),
|
|
13
|
+
'returningWeek': (new Date(json['returningWeek'])),
|
|
13
14
|
'retentionPct': !exists(json, 'retentionPct') ? undefined : json['retentionPct'],
|
|
14
15
|
};
|
|
15
16
|
}
|
|
@@ -22,6 +23,7 @@ function RetentionTrendResultToJSON(value) {
|
|
|
22
23
|
}
|
|
23
24
|
return {
|
|
24
25
|
'cohortWeek': (value.cohortWeek.toISOString().substr(0, 10)),
|
|
26
|
+
'returningWeek': (value.returningWeek.toISOString().substr(0, 10)),
|
|
25
27
|
'retentionPct': value.retentionPct,
|
|
26
28
|
};
|
|
27
29
|
}
|